Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",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.001251/0.001251, allocations: 114.5 kB / 17.28 MB, free: 6.219 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.001162/0.001162, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.654/1.654, allocations: 205.1 MB / 224.1 MB, free: 12.36 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.001434/0.001434, allocations: 48.14 kB / 280.2 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1308, allocations: 46.64 MB / 326.9 MB, free: 4.699 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003335/0.1342, allocations: 1.74 MB / 328.6 MB, free: 2.938 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006989/0.1349, allocations: 283.1 kB / 328.9 MB, free: 2.66 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.135, allocations: 4 kB / 328.9 MB, free: 2.656 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.1352, allocations: 19.81 kB / 328.9 MB, free: 2.637 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.406e-05/0.1352, allocations: 11.91 kB / 328.9 MB, free: 2.625 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003967/0.1356, allocations: 103.8 kB / 329 MB, free: 2.523 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003213/0.136, allocations: 271.5 kB / 329.3 MB, free: 2.258 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003096/0.1363, allocations: 194.9 kB / 329.5 MB, free: 2.062 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.749e-05/0.1364, allocations: 91.64 kB / 329.6 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000137/0.1365, allocations: 107.5 kB / 329.7 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.899e-05/0.1366, allocations: 24 kB / 329.7 MB, free: 1.844 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.954e-05/0.1367, allocations: 27.98 kB / 329.7 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.74e-05/0.1367, allocations: 59.83 kB / 329.8 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.1369, allocations: 99.53 kB / 329.9 MB, free: 1.66 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002716/0.1371, allocations: 235.5 kB / 330.1 MB, free: 1.43 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1371, allocations: 0 / 330.1 MB, free: 1.43 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1372, allocations: 0 / 330.1 MB, free: 1.43 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.1372, allocations: 4 kB / 330.1 MB, free: 1.426 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006832/0.1379, allocations: 490.1 kB / 330.6 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.1379, allocations: 12.03 kB / 330.6 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.19e-05/0.138, allocations: 62.72 kB / 330.7 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.856e-05/0.1381, allocations: 24.66 kB / 330.7 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.1383, allocations: 239.9 kB / 330.9 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.716e-05/0.1384, allocations: 24.94 kB / 330.9 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.748e-05/0.1384, allocations: 24.38 kB / 331 MB, free: 480 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004325/0.1388, allocations: 274.5 kB / 331.2 MB, free: 184 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.1389, allocations: 3.938 kB / 331.2 MB, free: 180 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.853e-05/0.1389, allocations: 15.97 kB / 331.3 MB, free: 164 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.1389, allocations: 8 kB / 331.3 MB, free: 156 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000304/0.1392, allocations: 161.7 kB / 331.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.1404, allocations: 0.975 MB / 332.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000258/0.1406, allocations: 150.8 kB / 332.5 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.1407, allocations: 76.83 kB / 332.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.1408, allocations: 7.984 kB / 332.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002196/0.141, allocations: 111.4 kB / 332.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.141, allocations: 0 / 332.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003654/0.1414, allocations: 209.9 kB / 332.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.1414, allocations: 59.41 kB / 333 MB, free: 14.3 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.1415, allocations: 157.8 kB / 333.2 MB, free: 14.14 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.1416, allocations: 37.64 kB / 333.2 MB, free: 14.1 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.164e-05/0.1417, allocations: 148.4 kB / 333.3 MB, free: 13.95 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.326e-05/0.1417, allocations: 55.34 kB / 333.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.743e-05/0.1418, allocations: 81.91 kB / 333.5 MB, free: 13.81 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1419, allocations: 334.8 kB / 333.8 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.142, allocations: 60.62 kB / 333.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.1422, allocations: 137.8 kB / 334 MB, free: 13.25 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002233/0.1424, allocations: 196.3 kB / 334.2 MB, free: 13.03 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1424, allocations: 4 kB / 334.2 MB, free: 13.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003266/0.1428, allocations: 249.2 kB / 334.4 MB, free: 12.77 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.1428, allocations: 11.83 kB / 334.4 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1428, allocations: 0 / 334.4 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.1428, allocations: 4 kB / 334.4 MB, free: 12.76 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.143, allocations: 32.2 kB / 334.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.143, allocations: 8 kB / 334.5 MB, free: 12.72 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.67e-05/0.1431, allocations: 35.77 kB / 334.5 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.552e-05/0.1431, allocations: 8 kB / 334.5 MB, free: 12.68 MB / 286.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001506/0.1433, allocations: 164.3 kB / 334.7 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.291e-05/0.1433, allocations: 11.81 kB / 334.7 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003249/0.1436, allocations: 190.8 kB / 334.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1436, allocations: 0 / 334.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1437, allocations: 8 kB / 334.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1437, allocations: 0 / 334.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000654/0.1443, allocations: 0.5871 MB / 335.5 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1443, allocations: 4 kB / 335.5 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.926e-05/0.1444, allocations: 19.86 kB / 335.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1444, allocations: 4 kB / 335.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.1444, allocations: 4 kB / 335.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1445, allocations: 4 kB / 335.5 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1445, allocations: 0 / 335.5 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002695/0.1447, allocations: 271.2 kB / 335.8 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.879e-05/0.1448, allocations: 92.89 kB / 335.9 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.815e-05/0.1448, allocations: 11.98 kB / 335.9 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.979e-05/0.1449, allocations: 4 kB / 335.9 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.89e-05/0.145, allocations: 27.89 kB / 335.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.516e-05/0.145, allocations: 8 kB / 335.9 MB, free: 11.17 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.645e-05/0.1451, allocations: 100.1 kB / 336 MB, free: 11.07 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1451, allocations: 0 / 336 MB, free: 11.07 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002867/0.1454, allocations: 55.75 kB / 336.1 MB, free: 11.02 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 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0006055/0.146, allocations: 0.8218 MB / 336.9 MB, free: 10.17 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003455/0.1464, allocations: 199.7 kB / 337.1 MB, free: 9.977 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1464, allocations: 0 / 337.1 MB, free: 9.977 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.1465, allocations: 87.89 kB / 337.2 MB, free: 9.891 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002853/0.1468, allocations: 23.98 kB / 337.2 MB, free: 9.867 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002074/0.1489, allocations: 2.111 MB / 339.3 MB, free: 7.617 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.1492, allocations: 0.7363 MB / 340.1 MB, free: 6.855 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.974e-05/0.1493, allocations: 25.94 kB / 340.1 MB, free: 6.828 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.1494, allocations: 59.42 kB / 340.1 MB, free: 6.77 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1494, allocations: 4 kB / 340.1 MB, free: 6.766 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7003/0.8497, allocations: 3.514 MB / 343.7 MB, free: 3.242 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002269/0.85, allocations: 215 kB / 343.9 MB, free: 2.973 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.195/3.045, allocations: 0 / 343.9 MB, free: 2.973 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches