Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00205/0.00205, allocations: 114 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002516/0.002516, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.523/1.523, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 55.97 kB / 306.5 MB, free: 0.8672 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1686, allocations: 50.54 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004838/0.1735, allocations: 1.795 MB / 358.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.1746, allocations: 307.1 kB / 359.2 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002466/0.1749, allocations: 4 kB / 359.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002324/0.1752, allocations: 19.8 kB / 359.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.1753, allocations: 11.92 kB / 359.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005721/0.1759, allocations: 99.89 kB / 359.3 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005085/0.1764, allocations: 275.5 kB / 359.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004531/0.1769, allocations: 181.5 kB / 359.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001689/0.1771, allocations: 95.69 kB / 359.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.1773, allocations: 99.55 kB / 359.9 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.11e-05/0.1773, allocations: 24 kB / 360 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001009/0.1775, allocations: 27.98 kB / 360 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.432e-05/0.1775, allocations: 63.77 kB / 360.1 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001419/0.1777, allocations: 99.53 kB / 360.2 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000388/0.1781, allocations: 235.5 kB / 360.4 MB, free: 11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1781, allocations: 4 kB / 360.4 MB, free: 11 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1781, allocations: 0 / 360.4 MB, free: 11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.346e-05/0.1781, allocations: 0 / 360.4 MB, free: 11 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0009758/0.1791, allocations: 494.7 kB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.1792, allocations: 15.97 kB / 360.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.317e-05/0.1793, allocations: 62.72 kB / 360.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000335/0.1796, allocations: 28.66 kB / 361 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003136/0.1799, allocations: 232 kB / 361.2 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.181e-05/0.18, allocations: 20.94 kB / 361.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.971e-05/0.18, allocations: 24.38 kB / 361.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004927/0.1805, allocations: 274.5 kB / 361.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.1806, allocations: 7.938 kB / 361.5 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/0.1806, allocations: 8 kB / 361.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.1806, allocations: 8 kB / 361.5 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003294/0.181, allocations: 169.5 kB / 361.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.1823, allocations: 0.9556 MB / 362.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/0.1827, allocations: 181.3 kB / 362.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.1828, allocations: 80.03 kB / 362.9 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.304e-05/0.1829, allocations: 4 kB / 362.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003589/0.1832, allocations: 141 kB / 363.1 MB, free: 8.102 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.054e-06/0.1833, allocations: 0 / 363.1 MB, free: 8.102 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005161/0.1838, allocations: 220.2 kB / 363.3 MB, free: 7.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.1839, allocations: 85.09 kB / 363.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.1841, allocations: 149.6 kB / 363.5 MB, free: 7.625 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.476e-05/0.1841, allocations: 37.7 kB / 363.5 MB, free: 7.582 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.1843, allocations: 148.6 kB / 363.7 MB, free: 7.434 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.448e-05/0.1844, allocations: 63.12 kB / 363.7 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.1845, allocations: 77.69 kB / 363.8 MB, free: 7.289 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000185/0.1847, allocations: 330.8 kB / 364.1 MB, free: 6.957 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.1849, allocations: 63.75 kB / 364.2 MB, free: 6.895 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002103/0.1851, allocations: 144.5 kB / 364.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003451/0.1854, allocations: 185 kB / 364.5 MB, free: 6.512 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1854, allocations: 4 kB / 364.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004568/0.1859, allocations: 253.5 kB / 364.8 MB, free: 6.254 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.1859, allocations: 8 kB / 364.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.186, allocations: 4 kB / 364.8 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.73e-05/0.186, allocations: 7.984 kB / 364.8 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.1862, allocations: 31.92 kB / 364.8 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.795e-05/0.1862, allocations: 7.984 kB / 364.8 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000142/0.1863, allocations: 23.75 kB / 364.9 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.1864, allocations: 16 kB / 364.9 MB, free: 6.156 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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 0.0002295/0.1866, allocations: 170.7 kB / 365 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.322e-05/0.1866, allocations: 19.81 kB / 365.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.537e-05/0.1867, allocations: 12.84 kB / 365.1 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.1867, allocations: 7.938 kB / 365.1 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.1868, allocations: 4 kB / 365.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.1868, allocations: 7.984 kB / 365.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009681/0.1877, allocations: 0.5789 MB / 365.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1878, allocations: 0 / 365.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.66e-05/0.1879, allocations: 16 kB / 365.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.596e-06/0.1879, allocations: 7.938 kB / 365.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.393e-05/0.1879, allocations: 3.984 kB / 365.7 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-06/0.1879, allocations: 4 kB / 365.7 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.188, allocations: 0 / 365.7 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004477/0.1884, allocations: 269.5 kB / 366 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.372e-05/0.1885, allocations: 96.84 kB / 366.1 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.754e-05/0.1886, allocations: 15.94 kB / 366.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.1887, allocations: 8 kB / 366.1 MB, free: 4.836 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.1888, allocations: 19.97 kB / 366.1 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.1888, allocations: 4 kB / 366.1 MB, free: 4.812 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001039/0.1889, allocations: 99.14 kB / 366.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1889, allocations: 0 / 366.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003671/0.1893, allocations: 47.84 kB / 366.2 MB, free: 4.672 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.active,transition1.enableFire,step.localActive,initialStep.localActive,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001054/0.1904, allocations: 0.8175 MB / 367.1 MB, free: 3.828 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004986/0.1909, allocations: 191.6 kB / 367.3 MB, free: 3.641 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.1909, allocations: 0 / 367.3 MB, free: 3.641 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001804/0.1911, allocations: 80.36 kB / 367.3 MB, free: 3.562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003679/0.1915, allocations: 28.05 kB / 367.4 MB, free: 3.535 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002765/0.1942, allocations: 2.11 MB / 369.5 MB, free: 1.277 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004934/0.1947, allocations: 0.7365 MB / 370.2 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.813e-05/0.1949, allocations: 21.94 kB / 370.2 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.195, allocations: 55.42 kB / 370.3 MB, free: 452 kB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.195, allocations: 0 / 370.3 MB, free: 452 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2242/0.4192, allocations: 3.318 MB / 373.6 MB, free: 20.16 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000177/0.4194, allocations: 202.7 kB / 373.8 MB, free: 19.91 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.042/2.462, allocations: 1.375 kB / 373.8 MB, free: 19.91 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches