Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 91.25 kB / 16.65 MB, free: 6.59 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.001408/0.001408, allocations: 184.5 kB / 17.56 MB, free: 6.203 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.728/1.728, allocations: 223.3 MB / 241.6 MB, free: 14.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002845/0.0002845, allocations: 12.62 kB / 301.4 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1238, allocations: 50.41 MB / 351.8 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002208/0.126, allocations: 1.401 MB / 353.2 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009172/0.127, allocations: 303.1 kB / 353.5 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.1271, allocations: 0 / 353.5 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.1273, allocations: 23.8 kB / 353.6 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.557e-05/0.1274, allocations: 7.938 kB / 353.6 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005855/0.128, allocations: 99.89 kB / 353.7 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000446/0.1284, allocations: 259.4 kB / 353.9 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004197/0.1289, allocations: 159.4 kB / 354.1 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001305/0.129, allocations: 79.64 kB / 354.1 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001733/0.1292, allocations: 75.55 kB / 354.2 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.078e-05/0.1293, allocations: 12 kB / 354.2 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.661e-05/0.1294, allocations: 19.98 kB / 354.2 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.763e-05/0.1294, allocations: 39.84 kB / 354.3 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.1296, allocations: 117.2 kB / 354.4 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000349/0.13, allocations: 203.2 kB / 354.6 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.13, allocations: 0 / 354.6 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.13, allocations: 0 / 354.6 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.13, allocations: 0 / 354.6 MB, free: 0.6562 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.0009175/0.1309, allocations: 458.9 kB / 355 MB, free: 160 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.137e-05/0.131, allocations: 12.03 kB / 355.1 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.888e-05/0.1311, allocations: 28.73 kB / 355.1 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003584/0.1315, allocations: 228 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.053e-05/0.1315, allocations: 24.94 kB / 355.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.628e-05/0.1316, allocations: 32.36 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005538/0.1321, allocations: 278.5 kB / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.1322, allocations: 3.938 kB / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.098e-05/0.1322, allocations: 12 kB / 355.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.1322, allocations: 4 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003435/0.1326, allocations: 165.6 kB / 355.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001399/0.134, allocations: 0.9789 MB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003387/0.1343, allocations: 173.3 kB / 357 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.1345, allocations: 85.72 kB / 357.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.1345, allocations: 7.984 kB / 357.1 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003021/0.1348, allocations: 141 kB / 357.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.1348, allocations: 0 / 357.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.000537/0.1354, allocations: 223.4 kB / 357.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.232e-05/0.1355, allocations: 89.16 kB / 357.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001727/0.1357, allocations: 161.6 kB / 357.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.1357, allocations: 37.7 kB / 357.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.1359, allocations: 128.5 kB / 357.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.094e-05/0.1359, allocations: 71.17 kB / 357.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.419e-05/0.136, allocations: 49.69 kB / 357.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.1362, allocations: 330.8 kB / 358.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.1363, allocations: 63.97 kB / 358.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.1365, allocations: 144.5 kB / 358.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003163/0.1369, allocations: 192.9 kB / 358.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1369, allocations: 0 / 358.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003928/0.1373, allocations: 261.2 kB / 358.9 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.1373, allocations: 4 kB / 358.9 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.1373, allocations: 4 kB / 358.9 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.1373, allocations: 4 kB / 358.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.1375, allocations: 31.91 kB / 359 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.1375, allocations: 4 kB / 359 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.1376, allocations: 35.69 kB / 359 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.209e-05/0.1377, allocations: 8.25 kB / 359 MB, free: 11.91 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.0001945/0.1379, allocations: 169.6 kB / 359.2 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.343e-05/0.1379, allocations: 11.91 kB / 359.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003843/0.1383, allocations: 190.4 kB / 359.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.1383, allocations: 4 kB / 359.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1383, allocations: 0 / 359.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1383, allocations: 0 / 359.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007363/0.1391, allocations: 0.6024 MB / 360 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.1391, allocations: 0 / 360 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.532e-05/0.1392, allocations: 23.92 kB / 360 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.1392, allocations: 3.938 kB / 360 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.1392, allocations: 8 kB / 360 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.1392, allocations: 0 / 360 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1392, allocations: 3.938 kB / 360 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003201/0.1396, allocations: 296.4 kB / 360.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.381e-05/0.1396, allocations: 96.8 kB / 360.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.028e-05/0.1397, allocations: 7.984 kB / 360.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.87e-05/0.1397, allocations: 8 kB / 360.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.06e-05/0.1398, allocations: 23.97 kB / 360.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.1398, allocations: 4 kB / 360.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.734e-05/0.1399, allocations: 102.4 kB / 360.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1399, allocations: 4 kB / 360.5 MB, free: 10.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003278/0.1402, allocations: 51.84 kB / 360.6 MB, free: 10.21 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.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: 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.0001894/0.1404, allocations: 119.1 kB / 360.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003535/0.1408, allocations: 179.8 kB / 360.9 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1408, allocations: 4 kB / 360.9 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001396/0.141, allocations: 80.47 kB / 361 MB, free: 9.828 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.1413, allocations: 34.33 kB / 361 MB, free: 9.797 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008021/0.1421, allocations: 415.8 kB / 361.4 MB, free: 9.363 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004487/0.1426, allocations: 0.7404 MB / 362.1 MB, free: 8.598 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.448e-05/0.1427, allocations: 21.94 kB / 362.2 MB, free: 8.578 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.897e-05/0.1428, allocations: 19.44 kB / 362.2 MB, free: 8.559 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1428, allocations: 0 / 362.2 MB, free: 8.559 MB / 302.1 MB Notification: Performance of Templates: time 0.005391/0.1482, allocations: 1.742 MB / 363.9 MB, free: 6.828 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches