Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001155/0.001155, allocations: 121.5 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 203.9 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.471/1.471, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001027, allocations: 55.91 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4556/0.4566, allocations: 50.55 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003362/0.46, allocations: 1.681 MB / 410.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007267/0.4608, allocations: 287.2 kB / 411.2 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.969e-05/0.4609, allocations: 7.938 kB / 411.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001462/0.4611, allocations: 31.67 kB / 411.2 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.505e-05/0.4611, allocations: 23.78 kB / 411.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004072/0.4615, allocations: 111.9 kB / 411.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003244/0.4619, allocations: 271.5 kB / 411.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003149/0.4622, allocations: 190.9 kB / 411.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.4623, allocations: 91.7 kB / 411.9 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.4625, allocations: 103.5 kB / 412 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.5e-05/0.4625, allocations: 24 kB / 412 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.69e-05/0.4626, allocations: 27.94 kB / 412 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.473e-05/0.4626, allocations: 67.81 kB / 412.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.775e-05/0.4628, allocations: 95.53 kB / 412.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003297/0.4631, allocations: 258.8 kB / 412.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.4631, allocations: 0 / 412.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4631, allocations: 7.938 kB / 412.5 MB, free: 14.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.4631, allocations: 0 / 412.5 MB, free: 14.35 MB / 334.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.0007514/0.4639, allocations: 498.3 kB / 412.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.4639, allocations: 8.031 kB / 413 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002296/0.4642, allocations: 32.78 kB / 413 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003254/0.4645, allocations: 236 kB / 413.2 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.655e-05/0.4645, allocations: 20.94 kB / 413.2 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.846e-05/0.4646, allocations: 28.38 kB / 413.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004514/0.4651, allocations: 270.5 kB / 413.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.4651, allocations: 192 / 413.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/0.4651, allocations: 15.94 kB / 413.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.4651, allocations: 8 kB / 413.6 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000276/0.4654, allocations: 169.6 kB / 413.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001066/0.4665, allocations: 0.9557 MB / 414.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002786/0.4668, allocations: 177.3 kB / 414.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001204/0.4669, allocations: 85.72 kB / 414.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.4669, allocations: 0 / 414.9 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/0.4672, allocations: 141 kB / 415.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.183e-06/0.4672, allocations: 0 / 415.1 MB, free: 11.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004139/0.4676, allocations: 222.8 kB / 415.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.4677, allocations: 85.09 kB / 415.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.4678, allocations: 161.6 kB / 415.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/0.4678, allocations: 33.83 kB / 415.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.106e-05/0.4679, allocations: 140.8 kB / 415.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.052e-05/0.468, allocations: 67.52 kB / 415.8 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.791e-05/0.4681, allocations: 77.64 kB / 415.8 MB, free: 10.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.4682, allocations: 326.8 kB / 416.2 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001245/0.4684, allocations: 71.75 kB / 416.2 MB, free: 10.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.4685, allocations: 136.5 kB / 416.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002557/0.4688, allocations: 196.2 kB / 416.6 MB, free: 9.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.4688, allocations: 0 / 416.6 MB, free: 9.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003636/0.4692, allocations: 249.6 kB / 416.8 MB, free: 9.656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.4692, allocations: 11.98 kB / 416.8 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.4692, allocations: 7.938 kB / 416.8 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.4692, allocations: 4 kB / 416.8 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.4694, allocations: 31.92 kB / 416.9 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.4694, allocations: 4 kB / 416.9 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.786e-05/0.4695, allocations: 27.78 kB / 416.9 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.192e-05/0.4695, allocations: 19.94 kB / 416.9 MB, free: 9.551 MB / 334.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.0001501/0.4697, allocations: 169.7 kB / 417.1 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.441e-05/0.4697, allocations: 15.91 kB / 417.1 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.103e-05/0.4698, allocations: 12.84 kB / 417.1 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.4698, allocations: 4 kB / 417.1 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.4698, allocations: 0 / 417.1 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.4698, allocations: 3.984 kB / 417.1 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007084/0.4705, allocations: 0.5821 MB / 417.7 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4705, allocations: 0 / 417.7 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.191e-05/0.4706, allocations: 19.98 kB / 417.7 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.4706, allocations: 8 kB / 417.7 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.4706, allocations: 3.938 kB / 417.7 MB, free: 8.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.4706, allocations: 7.875 kB / 417.7 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.4707, allocations: 4 kB / 417.7 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003166/0.471, allocations: 268.2 kB / 418 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.883e-05/0.471, allocations: 92.95 kB / 418.1 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.788e-05/0.4711, allocations: 8 kB / 418.1 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.506e-05/0.4712, allocations: 15.92 kB / 418.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.446e-05/0.4713, allocations: 19.98 kB / 418.1 MB, free: 8.219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.4713, allocations: 4 kB / 418.1 MB, free: 8.215 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.063e-05/0.4713, allocations: 102.2 kB / 418.2 MB, free: 8.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4713, allocations: 0 / 418.2 MB, free: 8.117 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002854/0.4716, allocations: 55.88 kB / 418.3 MB, free: 8.062 MB / 334.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: 18 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 19 * 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.0001284/0.4718, allocations: 99.19 kB / 418.4 MB, free: 7.957 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004244/0.4722, allocations: 184.1 kB / 418.6 MB, free: 7.777 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.4722, allocations: 3.938 kB / 418.6 MB, free: 7.773 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001361/0.4724, allocations: 83.77 kB / 418.6 MB, free: 7.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.4727, allocations: 20 kB / 418.7 MB, free: 7.672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006219/0.4733, allocations: 338.6 kB / 419 MB, free: 7.312 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003773/0.4737, allocations: 0.7365 MB / 419.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.004e-05/0.4738, allocations: 29.88 kB / 419.8 MB, free: 6.516 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.75e-05/0.4738, allocations: 19.44 kB / 419.8 MB, free: 6.496 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4739, allocations: 0 / 419.8 MB, free: 6.496 MB / 334.1 MB Notification: Performance of Templates: time 0.004631/0.4785, allocations: 1.712 MB / 421.5 MB, free: 4.793 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches