Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 104.4 kB / 17.59 MB, free: 5.441 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.001666/0.001666, allocations: 191.3 kB / 18.52 MB, free: 4.523 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.413/1.413, allocations: 222.9 MB / 242.2 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 51.84 kB / 301.3 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1032, allocations: 49.44 MB / 350.7 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003044/0.1063, allocations: 1.473 MB / 352.2 MB, free: 2.961 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000764/0.1071, allocations: 283.2 kB / 352.5 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.1072, allocations: 7.938 kB / 352.5 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.1074, allocations: 19.73 kB / 352.5 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.346e-05/0.1075, allocations: 23.8 kB / 352.5 MB, free: 2.633 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004864/0.108, allocations: 107.8 kB / 352.6 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003836/0.1084, allocations: 259.5 kB / 352.9 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003356/0.1087, allocations: 162.4 kB / 353 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.1089, allocations: 83.77 kB / 353.1 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.109, allocations: 95.53 kB / 353.2 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.194e-05/0.1091, allocations: 23.94 kB / 353.2 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.662e-05/0.1092, allocations: 35.98 kB / 353.3 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.671e-05/0.1092, allocations: 47.91 kB / 353.3 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.1094, allocations: 99.52 kB / 353.4 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002891/0.1097, allocations: 231.2 kB / 353.6 MB, free: 1.504 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1097, allocations: 0 / 353.6 MB, free: 1.504 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1097, allocations: 0 / 353.6 MB, free: 1.504 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.1097, allocations: 0 / 353.6 MB, free: 1.504 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007248/0.1104, allocations: 482.8 kB / 354.1 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1105, allocations: 12.03 kB / 354.1 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.213e-05/0.1106, allocations: 24.73 kB / 354.1 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002698/0.1108, allocations: 224 kB / 354.4 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.39e-05/0.1109, allocations: 28.94 kB / 354.4 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.866e-05/0.1109, allocations: 24.38 kB / 354.4 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004292/0.1114, allocations: 240 kB / 354.6 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.1114, allocations: 192 / 354.6 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.1114, allocations: 19.92 kB / 354.7 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.1114, allocations: 4 kB / 354.7 MB, free: 376 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002992/0.1117, allocations: 157.6 kB / 354.8 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.1128, allocations: 0.7012 MB / 355.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003103/0.1131, allocations: 174.8 kB / 355.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.1132, allocations: 84.75 kB / 355.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.1133, allocations: 4 kB / 355.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00027/0.1135, allocations: 119.3 kB / 355.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.1135, allocations: 0 / 355.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004393/0.114, allocations: 228.9 kB / 356.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.114, allocations: 59.41 kB / 356.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.1142, allocations: 152.4 kB / 356.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.1142, allocations: 37.7 kB / 356.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.221e-05/0.1143, allocations: 126.1 kB / 356.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.912e-05/0.1144, allocations: 63.19 kB / 356.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.858e-05/0.1145, allocations: 78 kB / 356.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1146, allocations: 322.8 kB / 356.9 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.1147, allocations: 64.62 kB / 357 MB, free: 13.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.1149, allocations: 132.1 kB / 357.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002457/0.1151, allocations: 183.1 kB / 357.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1151, allocations: 0 / 357.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003772/0.1155, allocations: 241.2 kB / 357.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.1156, allocations: 12.2 kB / 357.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.1156, allocations: 4 kB / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.1156, allocations: 4 kB / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.1157, allocations: 27.92 kB / 357.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.1158, allocations: 4 kB / 357.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.1159, allocations: 23.78 kB / 357.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.305e-05/0.1159, allocations: 15.98 kB / 357.6 MB, free: 13.22 MB / 302.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.0001551/0.1161, allocations: 157.8 kB / 357.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.783e-05/0.1161, allocations: 15.75 kB / 357.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003484/0.1165, allocations: 206.3 kB / 358 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.1165, allocations: 7.938 kB / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.1165, allocations: 0 / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1165, allocations: 0 / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007049/0.1172, allocations: 0.5605 MB / 358.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1172, allocations: 0 / 358.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.141e-05/0.1173, allocations: 19.98 kB / 358.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1173, allocations: 3.938 kB / 358.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.1174, allocations: 8 kB / 358.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1174, allocations: 0 / 358.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1174, allocations: 3.938 kB / 358.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003241/0.1177, allocations: 279.7 kB / 358.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.535e-05/0.1178, allocations: 92.86 kB / 359 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.971e-05/0.1178, allocations: 4 kB / 359 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.594e-05/0.1179, allocations: 11.98 kB / 359 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.589e-05/0.118, allocations: 27.91 kB / 359 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.118, allocations: 11.94 kB / 359 MB, free: 11.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.608e-05/0.1181, allocations: 95.27 kB / 359.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1181, allocations: 0 / 359.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003072/0.1184, allocations: 47.84 kB / 359.2 MB, free: 11.57 MB / 302.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.0001544/0.1186, allocations: 107.2 kB / 359.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004078/0.119, allocations: 200 kB / 359.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.119, allocations: 4 kB / 359.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001393/0.1191, allocations: 83.91 kB / 359.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002944/0.1195, allocations: 23.97 kB / 359.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005983/0.1201, allocations: 353.7 kB / 359.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003701/0.1204, allocations: 0.7324 MB / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.229e-05/0.1205, allocations: 23.44 kB / 360.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1205, allocations: 0 / 360.7 MB, free: 9.996 MB / 302.1 MB Notification: Performance of Templates: time 0.004617/0.1251, allocations: 2.358 MB / 363 MB, free: 7.645 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches