Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",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.001486/0.001486, allocations: 104.2 kB / 17.58 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001702/0.001702, allocations: 192 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.92/1.92, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 56.3 kB / 280.7 MB, free: 3.102 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1512, allocations: 46.64 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.004802/0.156, allocations: 1.47 MB / 328.8 MB, free: 2.906 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.000778/0.1568, allocations: 255.3 kB / 329.1 MB, free: 2.656 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.157, allocations: 0 / 329.1 MB, free: 2.656 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000188/0.1573, allocations: 23.69 kB / 329.1 MB, free: 2.633 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.823e-05/0.1573, allocations: 19.8 kB / 329.1 MB, free: 2.613 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004373/0.1578, allocations: 111.8 kB / 329.2 MB, free: 2.504 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003391/0.1581, allocations: 255.5 kB / 329.5 MB, free: 2.254 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000356/0.1585, allocations: 154.4 kB / 329.6 MB, free: 2.098 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.1586, allocations: 95.69 kB / 329.7 MB, free: 2.004 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.1588, allocations: 95.53 kB / 329.8 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.229e-05/0.1588, allocations: 24 kB / 329.9 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.858e-05/0.1589, allocations: 31.98 kB / 329.9 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.372e-05/0.159, allocations: 59.78 kB / 329.9 MB, free: 1.797 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.1591, allocations: 99.52 kB / 330 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.1595, allocations: 223.6 kB / 330.3 MB, free: 1.48 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1595, allocations: 0 / 330.3 MB, free: 1.48 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1595, allocations: 0 / 330.3 MB, free: 1.48 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.1595, allocations: 0 / 330.3 MB, free: 1.48 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007458/0.1602, allocations: 486.4 kB / 330.7 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.1603, allocations: 8.031 kB / 330.7 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.457e-05/0.1604, allocations: 62.72 kB / 330.8 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.197e-05/0.1604, allocations: 24.75 kB / 330.8 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002892/0.1607, allocations: 224.1 kB / 331 MB, free: 0.5898 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.461e-05/0.1608, allocations: 24.92 kB / 331.1 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.273e-05/0.1608, allocations: 24.38 kB / 331.1 MB, free: 0.543 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004592/0.1613, allocations: 240 kB / 331.3 MB, free: 308 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.1613, allocations: 7.938 kB / 331.3 MB, free: 300 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.1614, allocations: 8 kB / 331.3 MB, free: 292 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.1614, allocations: 8 kB / 331.4 MB, free: 284 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003341/0.1617, allocations: 153.7 kB / 331.5 MB, free: 132 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.163, allocations: 0.7128 MB / 332.2 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003543/0.1634, allocations: 170.8 kB / 332.4 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.1635, allocations: 80.83 kB / 332.5 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.01e-05/0.1636, allocations: 7.938 kB / 332.5 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003384/0.1639, allocations: 115.4 kB / 332.6 MB, free: 14.97 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 2.414e-06/0.1639, allocations: 4 kB / 332.6 MB, free: 14.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004955/0.1644, allocations: 213.3 kB / 332.8 MB, free: 14.75 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.1645, allocations: 63.28 kB / 332.9 MB, free: 14.68 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.1646, allocations: 149.9 kB / 333 MB, free: 14.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.227e-05/0.1647, allocations: 33.7 kB / 333 MB, free: 14.48 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.1648, allocations: 132.6 kB / 333.2 MB, free: 14.35 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.752e-05/0.1649, allocations: 63.19 kB / 333.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.165, allocations: 74.02 kB / 333.3 MB, free: 14.21 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1652, allocations: 326.8 kB / 333.6 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.1653, allocations: 60.62 kB / 333.7 MB, free: 13.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.1655, allocations: 128.1 kB / 333.8 MB, free: 13.67 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002742/0.1657, allocations: 178.6 kB / 334 MB, free: 13.47 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1657, allocations: 0 / 334 MB, free: 13.47 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003802/0.1661, allocations: 249.3 kB / 334.2 MB, free: 13.22 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.1662, allocations: 7.938 kB / 334.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.1662, allocations: 4 kB / 334.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.1662, allocations: 7.938 kB / 334.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.1664, allocations: 27.92 kB / 334.3 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.1664, allocations: 0 / 334.3 MB, free: 13.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.1665, allocations: 35.67 kB / 334.3 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.915e-05/0.1665, allocations: 12 kB / 334.3 MB, free: 13.13 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001649/0.1667, allocations: 157.9 kB / 334.5 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.1668, allocations: 19.88 kB / 334.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004203/0.1672, allocations: 194.3 kB / 334.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1672, allocations: 0 / 334.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.1672, allocations: 0 / 334.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.1672, allocations: 0 / 334.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009198/0.1681, allocations: 0.5724 MB / 335.2 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.1682, allocations: 4 kB / 335.3 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.125e-05/0.1683, allocations: 19.98 kB / 335.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.1683, allocations: 0 / 335.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/0.1683, allocations: 0 / 335.3 MB, free: 12.1 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.1683, allocations: 4 kB / 335.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.1683, allocations: 3.938 kB / 335.3 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003848/0.1687, allocations: 275.3 kB / 335.5 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.511e-05/0.1688, allocations: 92.86 kB / 335.6 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.857e-05/0.1689, allocations: 19.98 kB / 335.7 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.545e-05/0.1689, allocations: 8 kB / 335.7 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.1691, allocations: 27.84 kB / 335.7 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.1691, allocations: 8 kB / 335.7 MB, free: 11.63 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.964e-05/0.1692, allocations: 95.77 kB / 335.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1692, allocations: 0 / 335.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003697/0.1696, allocations: 51.84 kB / 335.8 MB, free: 11.49 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008404/0.1704, allocations: 0.8222 MB / 336.7 MB, free: 10.64 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003973/0.1708, allocations: 195.9 kB / 336.9 MB, free: 10.45 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1708, allocations: 4 kB / 336.9 MB, free: 10.44 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001337/0.171, allocations: 79.91 kB / 336.9 MB, free: 10.36 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003169/0.1713, allocations: 36.28 kB / 337 MB, free: 10.33 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002352/0.1737, allocations: 2 MB / 339 MB, free: 8.203 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.1741, allocations: 0.7324 MB / 339.7 MB, free: 7.445 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.604e-05/0.1742, allocations: 21.94 kB / 339.7 MB, free: 7.426 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.1743, allocations: 55.42 kB / 339.8 MB, free: 7.371 MB / 286.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1743, allocations: 0 / 339.8 MB, free: 7.371 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02393/0.1982, allocations: 3.581 MB / 343.4 MB, free: 3.738 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.014/8.212, allocations: 15.52 kB / 343.4 MB, free: 3.723 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches