Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 222.9 MB / 239.3 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 195.6 kB / 289.6 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03448/0.03448, allocations: 8.797 MB / 348.5 MB, free: 4.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 77.78 kB / 411.2 MB, free: 42 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08397/0.08558, allocations: 51.57 MB / 462.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.001765/0.08738, allocations: 497.2 kB / 463.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001456/0.08755, allocations: 35.81 kB / 463.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.928e-05/0.0876, allocations: 4 kB / 463.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.438e-05/0.08763, allocations: 0 / 463.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.292e-05/0.08769, allocations: 3.938 kB / 463.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001133/0.08781, allocations: 0 / 463.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.347e-05/0.08788, allocations: 19.92 kB / 463.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.148e-05/0.08794, allocations: 0 / 463.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.464e-05/0.08797, allocations: 7.938 kB / 463.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.028e-05/0.08803, allocations: 11.98 kB / 463.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.56e-05/0.08805, allocations: 0 / 463.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.127e-06/0.08807, allocations: 0 / 463.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.557e-05/0.08809, allocations: 7.984 kB / 463.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.739e-05/0.08812, allocations: 7.938 kB / 463.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 6.26e-05/0.08819, allocations: 7.938 kB / 463.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.0882, allocations: 3.938 kB / 463.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.0882, allocations: 0 / 463.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.08821, allocations: 0 / 463.3 MB, free: 13.7 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000365/0.08858, allocations: 338.1 kB / 463.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.08863, allocations: 8.031 kB / 463.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.973e-05/0.08867, allocations: 30.75 kB / 463.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.364e-05/0.0887, allocations: 12.92 kB / 463.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.08883, allocations: 164.4 kB / 463.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.08885, allocations: 4.375 kB / 463.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.08888, allocations: 384 / 463.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.44e-05/0.08898, allocations: 38.23 kB / 463.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.08899, allocations: 3.938 kB / 463.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-06/0.08901, allocations: 4 kB / 463.9 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.08902, allocations: 0 / 463.9 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.849e-05/0.08906, allocations: 11.94 kB / 464 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001844/0.08925, allocations: 157.7 kB / 464.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.886e-05/0.08934, allocations: 34.61 kB / 464.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.228e-05/0.08938, allocations: 12.86 kB / 464.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.0894, allocations: 4 kB / 464.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.08943, allocations: 30.56 kB / 464.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.08944, allocations: 0 / 464.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001502/0.08959, allocations: 57.56 kB / 464.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.08964, allocations: 55.41 kB / 464.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.5e-05/0.08973, allocations: 101.8 kB / 464.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.08975, allocations: 25.7 kB / 464.4 MB, free: 12.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.693e-05/0.08979, allocations: 84.14 kB / 464.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.251e-05/0.08983, allocations: 7.906 kB / 464.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.08987, allocations: 13.72 kB / 464.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.09001, allocations: 330.7 kB / 464.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.707e-05/0.09003, allocations: 4 kB / 464.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.125e-05/0.09005, allocations: 8 kB / 464.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.198e-05/0.0901, allocations: 16.86 kB / 464.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.09011, allocations: 0 / 464.9 MB, free: 11.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.498e-05/0.09019, allocations: 49.62 kB / 464.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.09021, allocations: 7.938 kB / 464.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.09022, allocations: 0 / 464.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.09024, allocations: 4 kB / 464.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.09035, allocations: 11.98 kB / 464.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.09037, allocations: 0 / 464.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.99e-05/0.09039, allocations: 7.906 kB / 465 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-06/0.0904, allocations: 4 kB / 465 MB, free: 11.85 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.749e-05/0.0905, allocations: 114.4 kB / 465.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.349e-05/0.09051, allocations: 8.453 kB / 465.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.564e-05/0.09054, allocations: 7.5 kB / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.09055, allocations: 0 / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.09056, allocations: 0 / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.09057, allocations: 3.984 kB / 465.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/0.09069, allocations: 153.7 kB / 465.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.0907, allocations: 0 / 465.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.273e-05/0.09078, allocations: 15.94 kB / 465.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.09079, allocations: 7.922 kB / 465.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.09081, allocations: 8 kB / 465.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.09082, allocations: 0 / 465.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.09083, allocations: 4 kB / 465.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001276/0.09096, allocations: 73.12 kB / 465.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.031e-05/0.09102, allocations: 84.95 kB / 465.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.09104, allocations: 3.938 kB / 465.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.811e-05/0.09106, allocations: 4.062 kB / 465.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.669e-05/0.09108, allocations: 8.016 kB / 465.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-06/0.09109, allocations: 0 / 465.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.463e-05/0.09113, allocations: 79.28 kB / 465.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.09113, allocations: 0 / 465.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001835/0.09132, allocations: 4 kB / 465.5 MB, free: 11.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003655/0.09169, allocations: 0.6124 MB / 466.1 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 8.303e-05/0.09179, allocations: 19.92 kB / 466.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.0918, allocations: 0 / 466.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.683e-05/0.09182, allocations: 11.94 kB / 466.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001381/0.09196, allocations: 7.938 kB / 466.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.09301, allocations: 1.168 MB / 467.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.09326, allocations: 0.6729 MB / 468 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.695e-05/0.09328, allocations: 7.984 kB / 468 MB, free: 8.547 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.852e-05/0.09332, allocations: 11.44 kB / 468 MB, free: 8.535 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09332, allocations: 0 / 468 MB, free: 8.535 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.1126, allocations: 1.085 MB / 469.1 MB, free: 7.492 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.517/7.629, allocations: 5 kB / 469.1 MB, free: 7.488 MB / 302.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical2.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe 2>&1)