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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.707/1.707, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008645/0.0008645, allocations: 90.7 kB / 262.5 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.566e-05/1.568e-05, allocations: 0 / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1167, allocations: 47.59 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3594/0.4762, allocations: 74.66 MB / 437.7 MB, free: 4.965 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.4765, allocations: 61.66 kB / 437.8 MB, free: 4.938 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007075/0.4836, allocations: 2.784 MB / 440.6 MB, free: 2.559 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4836, allocations: 0 / 440.6 MB, free: 2.559 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.4836, allocations: 7.938 kB / 440.6 MB, free: 2.551 MB / 314.7 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.000609/0.4843, allocations: 437.5 kB / 441 MB, free: 2.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.4843, allocations: 11.97 kB / 441 MB, free: 2.078 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.396e-05/0.4844, allocations: 19.81 kB / 441 MB, free: 2.059 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002955/0.4847, allocations: 222.5 kB / 441.2 MB, free: 1.816 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.92e-05/0.4847, allocations: 15.44 kB / 441.3 MB, free: 1.805 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.532e-05/0.4848, allocations: 16 kB / 441.3 MB, free: 1.789 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003158/0.4851, allocations: 141.2 kB / 441.4 MB, free: 1.695 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003489/0.4855, allocations: 202.6 kB / 441.6 MB, free: 1.531 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.4855, allocations: 8 kB / 441.6 MB, free: 1.523 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.173e-05/0.4855, allocations: 0 / 441.6 MB, free: 1.523 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.4855, allocations: 4 kB / 441.6 MB, free: 1.52 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008977/0.4864, allocations: 0.6422 MB / 442.3 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002385/0.4867, allocations: 148.3 kB / 442.4 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.89e-05/0.4868, allocations: 69.05 kB / 442.5 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.4868, allocations: 8.219 kB / 442.5 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001688/0.487, allocations: 112.4 kB / 442.6 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.487, allocations: 0 / 442.6 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002923/0.4873, allocations: 154.5 kB / 442.7 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.4874, allocations: 55.41 kB / 442.8 MB, free: 496 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.4875, allocations: 133.8 kB / 442.9 MB, free: 368 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/0.4875, allocations: 29.7 kB / 443 MB, free: 332 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.851e-05/0.4876, allocations: 135 kB / 443.1 MB, free: 204 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.948e-05/0.4877, allocations: 61.88 kB / 443.2 MB, free: 152 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-06/0.4877, allocations: 0 / 443.2 MB, free: 152 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.4878, allocations: 326.8 kB / 443.5 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.513e-05/0.4879, allocations: 48.78 kB / 443.5 MB, free: 15.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.488, allocations: 112.2 kB / 443.6 MB, free: 15.69 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.739e-05/0.4881, allocations: 61.16 kB / 443.7 MB, free: 15.64 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.4882, allocations: 4 kB / 443.7 MB, free: 15.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002998/0.4885, allocations: 209 kB / 443.9 MB, free: 15.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.4885, allocations: 8 kB / 443.9 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.4885, allocations: 0 / 443.9 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.982e-05/0.4885, allocations: 4 kB / 443.9 MB, free: 15.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.4887, allocations: 31.48 kB / 443.9 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.4887, allocations: 8.5 kB / 443.9 MB, free: 15.42 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.279e-05/0.4888, allocations: 11.92 kB / 444 MB, free: 15.41 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.03e-05/0.4888, allocations: 12 kB / 444 MB, free: 15.39 MB / 330.7 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,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00012/0.4889, allocations: 131.5 kB / 444.1 MB, free: 15.26 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.166e-05/0.489, allocations: 11.81 kB / 444.1 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000383/0.4894, allocations: 169.2 kB / 444.3 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.4894, allocations: 4 kB / 444.3 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.4894, allocations: 3.938 kB / 444.3 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.4894, allocations: 7.938 kB / 444.3 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006385/0.49, allocations: 0.4956 MB / 444.8 MB, free: 14.63 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.4901, allocations: 4 kB / 444.8 MB, free: 14.63 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.924e-05/0.4901, allocations: 19.92 kB / 444.8 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.4902, allocations: 0 / 444.8 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.4902, allocations: 7.078 kB / 444.8 MB, free: 14.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.4902, allocations: 4 kB / 444.8 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.4902, allocations: 0 / 444.8 MB, free: 14.6 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002922/0.4905, allocations: 261.5 kB / 445.1 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.467e-05/0.4906, allocations: 92.86 kB / 445.2 MB, free: 14.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.4906, allocations: 7.938 kB / 445.2 MB, free: 14.24 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.726e-05/0.4907, allocations: 11.94 kB / 445.2 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.796e-05/0.4908, allocations: 19.78 kB / 445.2 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.4908, allocations: 11.19 kB / 445.2 MB, free: 14.21 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.285e-05/0.4909, allocations: 90.77 kB / 445.3 MB, free: 14.12 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4909, allocations: 0 / 445.3 MB, free: 14.12 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002652/0.4912, allocations: 32 kB / 445.3 MB, free: 14.09 MB / 330.7 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.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001932/0.4914, allocations: 110.8 kB / 445.4 MB, free: 13.97 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002726/0.4917, allocations: 164.7 kB / 445.6 MB, free: 13.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4917, allocations: 2.219 kB / 445.6 MB, free: 13.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.4918, allocations: 75.73 kB / 445.7 MB, free: 13.8 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002017/0.492, allocations: 15.48 kB / 445.7 MB, free: 13.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004286/0.4924, allocations: 216.9 kB / 445.9 MB, free: 13.58 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.4928, allocations: 0.7399 MB / 446.7 MB, free: 12.82 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.961e-05/0.4929, allocations: 26.08 kB / 446.7 MB, free: 12.79 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.527e-05/0.4929, allocations: 23.42 kB / 446.7 MB, free: 12.77 MB / 330.7 MB Notification: Performance of SimCode: time 2.084e-06/0.493, allocations: 0 / 446.7 MB, free: 12.77 MB / 330.7 MB Notification: Performance of Templates: time 0.004323/0.4973, allocations: 1.629 MB / 448.3 MB, free: 11.16 MB / 330.7 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","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches