Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001429/0.00143, allocations: 115.5 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001617/0.001617, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 55.91 kB / 358.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.3748, allocations: 50.53 MB / 409.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003004/0.3778, allocations: 1.708 MB / 410.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007164/0.3786, allocations: 295.1 kB / 411.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.3787, allocations: 7.938 kB / 411.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000148/0.3789, allocations: 23.69 kB / 411.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.605e-05/0.3789, allocations: 23.73 kB / 411.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004268/0.3794, allocations: 115.8 kB / 411.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003267/0.3797, allocations: 259.5 kB / 411.6 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003342/0.38, allocations: 197.5 kB / 411.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.769e-05/0.3802, allocations: 83.72 kB / 411.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001373/0.3803, allocations: 103.5 kB / 412 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.903e-05/0.3804, allocations: 28 kB / 412 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.444e-05/0.3804, allocations: 35.94 kB / 412.1 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.556e-05/0.3805, allocations: 47.91 kB / 412.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.3806, allocations: 107.4 kB / 412.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003324/0.381, allocations: 250.8 kB / 412.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.381, allocations: 0 / 412.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.381, allocations: 0 / 412.5 MB, free: 14.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.381, allocations: 0 / 412.5 MB, free: 14.37 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.0007242/0.3817, allocations: 498.4 kB / 413 MB, free: 13.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3818, allocations: 16.03 kB / 413 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002212/0.382, allocations: 28.8 kB / 413 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002895/0.3823, allocations: 236 kB / 413.2 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.615e-05/0.3823, allocations: 24.94 kB / 413.2 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.598e-05/0.3824, allocations: 28.38 kB / 413.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004428/0.3828, allocations: 274.5 kB / 413.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.3828, allocations: 8.188 kB / 413.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.54e-05/0.3829, allocations: 11.94 kB / 413.6 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.3829, allocations: 4 kB / 413.6 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002941/0.3832, allocations: 165.6 kB / 413.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.3844, allocations: 0.9557 MB / 414.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.3847, allocations: 176.8 kB / 414.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.3848, allocations: 81.62 kB / 414.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.3848, allocations: 8 kB / 414.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002044/0.385, allocations: 136.2 kB / 415.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.385, allocations: 0 / 415.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004332/0.3855, allocations: 225.3 kB / 415.3 MB, free: 11.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.083e-05/0.3856, allocations: 81.11 kB / 415.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.3857, allocations: 165.3 kB / 415.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.3857, allocations: 33.7 kB / 415.6 MB, free: 11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.3858, allocations: 140.7 kB / 415.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.319e-05/0.3859, allocations: 71.5 kB / 415.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.317e-05/0.386, allocations: 77.47 kB / 415.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.3862, allocations: 326.8 kB / 416.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.3863, allocations: 63.97 kB / 416.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001545/0.3865, allocations: 140.5 kB / 416.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002371/0.3867, allocations: 200.2 kB / 416.6 MB, free: 9.926 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3867, allocations: 0 / 416.6 MB, free: 9.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000348/0.3871, allocations: 253.3 kB / 416.8 MB, free: 9.672 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.3871, allocations: 11.98 kB / 416.8 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.3871, allocations: 0 / 416.8 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.3871, allocations: 4 kB / 416.8 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.3873, allocations: 35.92 kB / 416.9 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.3873, allocations: 4 kB / 416.9 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.788e-05/0.3874, allocations: 23.83 kB / 416.9 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.3875, allocations: 12.28 kB / 416.9 MB, free: 9.582 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.0001541/0.3876, allocations: 165.6 kB / 417.1 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.193e-05/0.3876, allocations: 11.91 kB / 417.1 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.836e-05/0.3877, allocations: 20.84 kB / 417.1 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.3877, allocations: 4 kB / 417.1 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3877, allocations: 0 / 417.1 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.3877, allocations: 3.984 kB / 417.1 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006683/0.3884, allocations: 0.582 MB / 417.7 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3884, allocations: 4 kB / 417.7 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.655e-05/0.3885, allocations: 15.98 kB / 417.7 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.3885, allocations: 0 / 417.7 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.3885, allocations: 11.94 kB / 417.7 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.3885, allocations: 3.938 kB / 417.7 MB, free: 8.688 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3885, allocations: 0 / 417.7 MB, free: 8.688 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002866/0.3888, allocations: 272.1 kB / 418 MB, free: 8.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.939e-05/0.3889, allocations: 93 kB / 418.1 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.3889, allocations: 15.98 kB / 418.1 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.662e-05/0.389, allocations: 7.938 kB / 418.1 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.195e-05/0.3891, allocations: 19.97 kB / 418.1 MB, free: 8.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.3891, allocations: 12 kB / 418.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.959e-05/0.3892, allocations: 91.27 kB / 418.2 MB, free: 8.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3892, allocations: 0 / 418.2 MB, free: 8.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002776/0.3895, allocations: 55.84 kB / 418.3 MB, free: 8.094 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,transition1.enableFire,step.active,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.0001172/0.3896, allocations: 111.2 kB / 418.4 MB, free: 7.977 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003303/0.3899, allocations: 180 kB / 418.6 MB, free: 7.801 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3899, allocations: 0 / 418.6 MB, free: 7.801 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001256/0.3901, allocations: 91.69 kB / 418.7 MB, free: 7.711 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.3903, allocations: 18.81 kB / 418.7 MB, free: 7.695 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006123/0.391, allocations: 338.6 kB / 419 MB, free: 7.336 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.3913, allocations: 0.7287 MB / 419.7 MB, free: 6.574 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.166e-05/0.3914, allocations: 25.94 kB / 419.8 MB, free: 6.547 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.491e-05/0.3915, allocations: 23.44 kB / 419.8 MB, free: 6.523 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3915, allocations: 0 / 419.8 MB, free: 6.523 MB / 334.1 MB Notification: Performance of Templates: time 0.004489/0.396, allocations: 1.702 MB / 421.5 MB, free: 4.832 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches