Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_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.001664/0.001664, allocations: 111.7 kB / 17.73 MB, free: 5.359 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.001742/0.001742, allocations: 188.1 kB / 18.66 MB, free: 4.438 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.672/1.672, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001131/0.001131, allocations: 48.39 kB / 328.5 MB, free: 3.344 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.11, allocations: 46.62 MB / 375.1 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003393/0.1135, allocations: 1.469 MB / 376.6 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009267/0.1145, allocations: 251.2 kB / 376.8 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.1146, allocations: 4 kB / 376.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001854/0.1148, allocations: 27.69 kB / 376.9 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.432e-05/0.1149, allocations: 15.8 kB / 376.9 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005456/0.1155, allocations: 107.9 kB / 377 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004419/0.1159, allocations: 263.5 kB / 377.2 MB, free: 2.477 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003991/0.1163, allocations: 170.4 kB / 377.4 MB, free: 2.309 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.1165, allocations: 87.7 kB / 377.5 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001889/0.1167, allocations: 91.61 kB / 377.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.148e-05/0.1168, allocations: 24 kB / 377.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.1169, allocations: 31.98 kB / 377.6 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.088e-05/0.117, allocations: 51.83 kB / 377.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.1171, allocations: 99.47 kB / 377.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.1175, allocations: 243.2 kB / 378 MB, free: 1.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1175, allocations: 0 / 378 MB, free: 1.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1175, allocations: 0 / 378 MB, free: 1.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1175, allocations: 0 / 378 MB, free: 1.691 MB / 318.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.000856/0.1184, allocations: 490.5 kB / 378.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.1185, allocations: 8.031 kB / 378.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.508e-05/0.1185, allocations: 24.66 kB / 378.5 MB, free: 1.133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003968/0.119, allocations: 232 kB / 378.8 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.546e-05/0.119, allocations: 20.94 kB / 378.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.844e-05/0.1191, allocations: 24.38 kB / 378.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005583/0.1196, allocations: 252 kB / 379 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.1197, allocations: 192 / 379.1 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.381e-05/0.1197, allocations: 11.94 kB / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.1197, allocations: 8 kB / 379.1 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004045/0.1201, allocations: 157.6 kB / 379.2 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2451/0.3652, allocations: 0.6928 MB / 379.9 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003373/0.3656, allocations: 170.5 kB / 380.1 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001333/0.3658, allocations: 81.23 kB / 380.2 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.3658, allocations: 6.25 kB / 380.2 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.366, allocations: 126 kB / 380.3 MB, free: 12.56 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 4.138e-06/0.3661, allocations: 0 / 380.3 MB, free: 12.56 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004344/0.3665, allocations: 219 kB / 380.5 MB, free: 12.53 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/0.3665, allocations: 56.66 kB / 380.6 MB, free: 12.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.3667, allocations: 148.1 kB / 380.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.3667, allocations: 37.53 kB / 380.7 MB, free: 12.33 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.595e-05/0.3668, allocations: 126 kB / 380.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.519e-05/0.3668, allocations: 65.66 kB / 380.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.3669, allocations: 78.38 kB / 381 MB, free: 12.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.054e-05/0.367, allocations: 326.8 kB / 381.3 MB, free: 11.87 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001087/0.3671, allocations: 62.16 kB / 381.4 MB, free: 11.87 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001349/0.3673, allocations: 129.5 kB / 381.5 MB, free: 11.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002206/0.3675, allocations: 176.2 kB / 381.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.3675, allocations: 3.578 kB / 381.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000385/0.3679, allocations: 238.2 kB / 381.9 MB, free: 11.69 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.3679, allocations: 6.938 kB / 381.9 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.3679, allocations: 2.328 kB / 381.9 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.368, allocations: 5.812 kB / 381.9 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.3681, allocations: 31.31 kB / 382 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/0.3682, allocations: 7.797 kB / 382 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.3683, allocations: 30.23 kB / 382 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.354e-05/0.3683, allocations: 17.28 kB / 382 MB, free: 11.68 MB / 318.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.0001512/0.3685, allocations: 153.1 kB / 382.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.215e-05/0.3685, allocations: 15.48 kB / 382.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000365/0.3689, allocations: 197.7 kB / 382.4 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.3689, allocations: 2.375 kB / 382.4 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.3689, allocations: 1.938 kB / 382.4 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.3689, allocations: 1.312 kB / 382.4 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008071/0.3698, allocations: 0.5659 MB / 382.9 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3698, allocations: 4.5 kB / 383 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.494e-05/0.3699, allocations: 19.33 kB / 383 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.3699, allocations: 1.156 kB / 383 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.3699, allocations: 7.734 kB / 383 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.3699, allocations: 3.531 kB / 383 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3699, allocations: 2.109 kB / 383 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002836/0.3702, allocations: 285.7 kB / 383.3 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.922e-05/0.3702, allocations: 98.39 kB / 383.4 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.3703, allocations: 7.875 kB / 383.4 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.533e-05/0.3704, allocations: 5.516 kB / 383.4 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.236e-05/0.3704, allocations: 21.06 kB / 383.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.3705, allocations: 10.45 kB / 383.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.149e-05/0.3705, allocations: 93.34 kB / 383.5 MB, free: 10.72 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3705, allocations: 0 / 383.5 MB, free: 10.72 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003203/0.3708, allocations: 53.73 kB / 383.5 MB, free: 10.71 MB / 318.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.0001211/0.371, allocations: 114.5 kB / 383.7 MB, free: 10.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003139/0.3713, allocations: 185.8 kB / 383.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3713, allocations: 0 / 383.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.3714, allocations: 83.41 kB / 383.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.3717, allocations: 20.83 kB / 383.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005211/0.3722, allocations: 328.5 kB / 384.3 MB, free: 10.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001635/0.3724, allocations: 0.7386 MB / 385 MB, free: 9.598 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.843e-05/0.3725, allocations: 27.58 kB / 385 MB, free: 9.594 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.819e-05/0.3726, allocations: 25.92 kB / 385.1 MB, free: 9.586 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3726, allocations: 0 / 385.1 MB, free: 9.586 MB / 318.1 MB Notification: Performance of Templates: time 0.005326/0.3779, allocations: 1.897 MB / 387 MB, free: 9.465 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches