Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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 4.0.0+maint.om/package.mo", uses=false) 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 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: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001577/0.001577, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 55.94 kB / 300.6 MB, free: 5.914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1191, allocations: 49.44 MB / 350 MB, free: 4.461 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004099/0.1232, allocations: 1.697 MB / 351.7 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008773/0.1242, allocations: 283.2 kB / 352 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001797/0.1244, allocations: 7.938 kB / 352 MB, free: 2.461 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001835/0.1246, allocations: 27.73 kB / 352 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.76e-05/0.1247, allocations: 19.73 kB / 352.1 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005019/0.1252, allocations: 119.8 kB / 352.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003315/0.1255, allocations: 271.5 kB / 352.4 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003117/0.1259, allocations: 181.5 kB / 352.6 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.126, allocations: 95.7 kB / 352.7 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.1261, allocations: 107.5 kB / 352.8 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.872e-05/0.1262, allocations: 20 kB / 352.8 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.734e-05/0.1263, allocations: 31.94 kB / 352.9 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.298e-05/0.1264, allocations: 55.89 kB / 352.9 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.1265, allocations: 107.4 kB / 353 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003409/0.1269, allocations: 231.2 kB / 353.3 MB, free: 1.215 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1269, allocations: 0 / 353.3 MB, free: 1.215 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1269, allocations: 4 kB / 353.3 MB, free: 1.211 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.325e-05/0.1269, allocations: 0 / 353.3 MB, free: 1.211 MB / 286.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.0008823/0.1278, allocations: 499 kB / 353.8 MB, free: 0.668 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.1279, allocations: 15.89 kB / 353.8 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.349e-05/0.128, allocations: 24.66 kB / 353.8 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003828/0.1283, allocations: 232.1 kB / 354 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.245e-05/0.1284, allocations: 20.94 kB / 354 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.258e-05/0.1285, allocations: 24.38 kB / 354.1 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005784/0.1291, allocations: 278.6 kB / 354.3 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.1291, allocations: 8.062 kB / 354.3 MB, free: 24 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.105e-05/0.1291, allocations: 11.94 kB / 354.4 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.1291, allocations: 8 kB / 354.4 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003778/0.1295, allocations: 165.7 kB / 354.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001438/0.131, allocations: 0.9709 MB / 355.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003251/0.1313, allocations: 177.4 kB / 355.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.1315, allocations: 84.81 kB / 355.7 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.232e-05/0.1315, allocations: 7.984 kB / 355.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003549/0.1319, allocations: 141 kB / 355.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.1319, allocations: 0 / 355.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004921/0.1324, allocations: 228.8 kB / 356.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.683e-05/0.1324, allocations: 85.05 kB / 356.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.1326, allocations: 149.6 kB / 356.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.1326, allocations: 33.7 kB / 356.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.1328, allocations: 148.6 kB / 356.5 MB, free: 13.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.229e-05/0.1328, allocations: 63.19 kB / 356.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/0.133, allocations: 77.67 kB / 356.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1331, allocations: 330.8 kB / 357 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.1333, allocations: 63.97 kB / 357 MB, free: 13.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.1334, allocations: 140.3 kB / 357.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003014/0.1337, allocations: 193 kB / 357.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.1338, allocations: 0 / 357.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004101/0.1342, allocations: 257.4 kB / 357.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.1342, allocations: 12.03 kB / 357.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1342, allocations: 0 / 357.6 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.1343, allocations: 7.938 kB / 357.6 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.1344, allocations: 35.92 kB / 357.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.532e-05/0.1344, allocations: 4 kB / 357.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.1346, allocations: 27.73 kB / 357.7 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.964e-05/0.1346, allocations: 8 kB / 357.7 MB, free: 12.41 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.localCondition,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.0001719/0.1348, allocations: 177.5 kB / 357.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.682e-05/0.1348, allocations: 15.91 kB / 357.9 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003518/0.1352, allocations: 194.3 kB / 358.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.1352, allocations: 4 kB / 358.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1352, allocations: 0 / 358.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.1352, allocations: 3.984 kB / 358.1 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007435/0.136, allocations: 0.5831 MB / 358.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.136, allocations: 0 / 358.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.634e-05/0.1361, allocations: 19.94 kB / 358.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.1361, allocations: 7.938 kB / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.1361, allocations: 7.984 kB / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.1361, allocations: 0 / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1361, allocations: 4 kB / 358.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003255/0.1365, allocations: 284.5 kB / 359 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.262e-05/0.1365, allocations: 100.8 kB / 359.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.971e-05/0.1366, allocations: 7.938 kB / 359.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.837e-05/0.1367, allocations: 11.98 kB / 359.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.788e-05/0.1368, allocations: 19.97 kB / 359.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.1368, allocations: 8 kB / 359.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.081e-05/0.1369, allocations: 99.27 kB / 359.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1369, allocations: 0 / 359.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003471/0.1372, allocations: 51.84 kB / 359.3 MB, free: 10.72 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: 20 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,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 (26): * Single equations (assignments): 21 * 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.0001773/0.1374, allocations: 111.2 kB / 359.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003951/0.1378, allocations: 203.9 kB / 359.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1378, allocations: 7.938 kB / 359.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001374/0.138, allocations: 79.91 kB / 359.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.1383, allocations: 27.98 kB / 359.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006802/0.139, allocations: 341.3 kB / 360.1 MB, free: 9.926 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003192/0.1393, allocations: 0.7401 MB / 360.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.955e-05/0.1394, allocations: 29.94 kB / 360.8 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.884e-05/0.1395, allocations: 23.44 kB / 360.8 MB, free: 9.102 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1395, allocations: 3.938 kB / 360.8 MB, free: 9.098 MB / 302.1 MB Notification: Performance of Templates: time 0.0062/0.1457, allocations: 1.871 MB / 362.7 MB, free: 7.242 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches