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: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.00142/0.00142, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.00143/0.00143, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.411/1.411, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001208/0.001208, allocations: 51.92 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1095, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003153/0.1127, allocations: 1.659 MB / 330.4 MB, free: 2.078 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006553/0.1133, allocations: 263.2 kB / 330.6 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.916e-05/0.1135, allocations: 7.938 kB / 330.6 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.1136, allocations: 31.73 kB / 330.7 MB, free: 1.781 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.603e-05/0.1137, allocations: 11.81 kB / 330.7 MB, free: 1.77 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004155/0.1141, allocations: 119.8 kB / 330.8 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003259/0.1144, allocations: 271.5 kB / 331.1 MB, free: 1.387 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003104/0.1147, allocations: 194.8 kB / 331.2 MB, free: 1.191 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.908e-05/0.1148, allocations: 91.69 kB / 331.3 MB, free: 1.102 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.115, allocations: 95.59 kB / 331.4 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.7e-05/0.115, allocations: 24 kB / 331.5 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.862e-05/0.1151, allocations: 39.98 kB / 331.5 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.896e-05/0.1152, allocations: 51.84 kB / 331.5 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.736e-05/0.1153, allocations: 107.5 kB / 331.6 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002542/0.1155, allocations: 251 kB / 331.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1155, allocations: 0 / 331.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1156, allocations: 0 / 331.9 MB, free: 0.543 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.1156, allocations: 0 / 331.9 MB, free: 0.543 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.0006465/0.1162, allocations: 490.1 kB / 332.4 MB, free: 12 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.1163, allocations: 11.95 kB / 332.4 MB, free: 16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.973e-05/0.1163, allocations: 36.64 kB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002754/0.1166, allocations: 231.9 kB / 332.6 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.1167, allocations: 28.92 kB / 332.7 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.724e-05/0.1167, allocations: 24.38 kB / 332.7 MB, free: 15.65 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004151/0.1171, allocations: 270.5 kB / 333 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1172, allocations: 4.188 kB / 333 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.723e-05/0.1172, allocations: 11.94 kB / 333 MB, free: 15.35 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.1172, allocations: 8 kB / 333 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000281/0.1175, allocations: 165.6 kB / 333.1 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.1186, allocations: 0.9633 MB / 334.1 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002596/0.1188, allocations: 158.7 kB / 334.3 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.119, allocations: 68.84 kB / 334.3 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.119, allocations: 4 kB / 334.3 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001777/0.1192, allocations: 123.2 kB / 334.5 MB, free: 13.78 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.014e-06/0.1192, allocations: 0 / 334.5 MB, free: 13.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003892/0.1196, allocations: 209.4 kB / 334.7 MB, free: 13.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/0.1196, allocations: 55.41 kB / 334.7 MB, free: 13.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.1198, allocations: 161.4 kB / 334.9 MB, free: 13.34 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.1198, allocations: 33.7 kB / 334.9 MB, free: 13.3 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.417e-05/0.1199, allocations: 152.4 kB / 335.1 MB, free: 13.15 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.178e-05/0.1199, allocations: 51.36 kB / 335.1 MB, free: 13.1 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.596e-05/0.12, allocations: 81.92 kB / 335.2 MB, free: 13.01 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.1201, allocations: 334.8 kB / 335.5 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.1203, allocations: 60.62 kB / 335.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.1204, allocations: 141.7 kB / 335.7 MB, free: 12.45 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002394/0.1207, allocations: 196.3 kB / 335.9 MB, free: 12.22 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.1207, allocations: 0 / 335.9 MB, free: 12.22 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003567/0.121, allocations: 249.2 kB / 336.1 MB, free: 11.97 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.1211, allocations: 8 kB / 336.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1211, allocations: 0 / 336.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.1211, allocations: 4.281 kB / 336.2 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.1212, allocations: 43.86 kB / 336.2 MB, free: 11.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.1213, allocations: 4 kB / 336.2 MB, free: 11.91 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.538e-05/0.1214, allocations: 23.78 kB / 336.2 MB, free: 11.89 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.342e-05/0.1214, allocations: 19.92 kB / 336.2 MB, free: 11.87 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.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,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.0001288/0.1215, allocations: 156.3 kB / 336.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.402e-05/0.1216, allocations: 15.81 kB / 336.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003357/0.1219, allocations: 198.7 kB / 336.6 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1219, allocations: 8 kB / 336.6 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1219, allocations: 0 / 336.6 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1219, allocations: 0 / 336.6 MB, free: 11.48 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006791/0.1226, allocations: 0.5909 MB / 337.2 MB, free: 10.83 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1226, allocations: 0 / 337.2 MB, free: 10.83 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.373e-05/0.1227, allocations: 15.98 kB / 337.2 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.019e-06/0.1227, allocations: 7.938 kB / 337.2 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.1228, allocations: 4 kB / 337.2 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1228, allocations: 0 / 337.2 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1228, allocations: 0 / 337.2 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000275/0.1231, allocations: 275.3 kB / 337.5 MB, free: 10.52 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.454e-05/0.1231, allocations: 92.86 kB / 337.6 MB, free: 10.41 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.691e-05/0.1231, allocations: 11.94 kB / 337.6 MB, free: 10.4 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.576e-05/0.1232, allocations: 7.984 kB / 337.6 MB, free: 10.39 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.1e-05/0.1233, allocations: 15.98 kB / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.1233, allocations: 11.98 kB / 337.6 MB, free: 10.36 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.253e-05/0.1234, allocations: 95.27 kB / 337.7 MB, free: 10.27 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1234, allocations: 4 kB / 337.7 MB, free: 10.27 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003109/0.1237, allocations: 51.84 kB / 337.8 MB, free: 10.21 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.localActive,step.active,transition1.enableFire,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: 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.0001309/0.1239, allocations: 111.4 kB / 337.9 MB, free: 10.1 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003083/0.1242, allocations: 191.7 kB / 338.1 MB, free: 9.91 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1242, allocations: 0 / 338.1 MB, free: 9.91 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001229/0.1243, allocations: 76.48 kB / 338.2 MB, free: 9.836 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.1246, allocations: 23.98 kB / 338.2 MB, free: 9.812 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005536/0.1252, allocations: 349.4 kB / 338.5 MB, free: 9.441 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.1255, allocations: 0.7322 MB / 339.3 MB, free: 8.684 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.944e-05/0.1255, allocations: 33.94 kB / 339.3 MB, free: 8.648 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.546e-05/0.1256, allocations: 19.44 kB / 339.3 MB, free: 8.629 MB / 286.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1256, allocations: 0 / 339.3 MB, free: 8.629 MB / 286.1 MB Notification: Performance of Templates: time 0.004816/0.1304, allocations: 1.873 MB / 341.2 MB, free: 6.758 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (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 & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches