Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002628/0.002628, allocations: 183.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.562/3.562, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001712/0.001712, allocations: 93.23 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006409/0.0006413, allocations: 8 kB / 326.9 MB, free: 224 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5067/0.5074, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003356/0.5109, allocations: 1.395 MB / 375.9 MB, free: 44.34 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.512, allocations: 281.9 kB / 376.2 MB, free: 44.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.5122, allocations: 2.75 kB / 376.2 MB, free: 44.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.5124, allocations: 15.94 kB / 376.2 MB, free: 44.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.771e-05/0.5125, allocations: 13.34 kB / 376.2 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01276/0.5253, allocations: 89.66 kB / 376.3 MB, free: 44.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006863/0.526, allocations: 161.2 kB / 376.5 MB, free: 43.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004938/0.5265, allocations: 149.4 kB / 376.6 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001571/0.5267, allocations: 67.67 kB / 376.7 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002018/0.527, allocations: 77.8 kB / 376.7 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.276e-05/0.527, allocations: 10.19 kB / 376.8 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.5272, allocations: 16.88 kB / 376.8 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.334e-05/0.5273, allocations: 42.2 kB / 376.8 MB, free: 43.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.533e-05/0.5274, allocations: 57.42 kB / 376.9 MB, free: 43.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003725/0.5278, allocations: 157.7 kB / 377 MB, free: 43.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.5278, allocations: 0 / 377 MB, free: 43.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.5278, allocations: 0 / 377 MB, free: 43.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.5278, allocations: 0 / 377 MB, free: 43.52 MB / 298.7 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.0009389/0.5288, allocations: 452.5 kB / 377.5 MB, free: 43.07 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.789e-05/0.5289, allocations: 13.94 kB / 377.5 MB, free: 43.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.529, allocations: 23.19 kB / 377.5 MB, free: 43.06 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004072/0.5295, allocations: 231 kB / 377.7 MB, free: 42.81 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.399e-05/0.5296, allocations: 19.69 kB / 377.7 MB, free: 42.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.618e-05/0.5297, allocations: 27.22 kB / 377.8 MB, free: 42.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009687/0.5307, allocations: 270.3 kB / 378 MB, free: 42.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.541e-05/0.5307, allocations: 0.9688 kB / 378 MB, free: 42.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.928e-05/0.5308, allocations: 14.34 kB / 378.1 MB, free: 42.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.073e-05/0.5308, allocations: 6.594 kB / 378.1 MB, free: 42.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007744/0.5316, allocations: 164.2 kB / 378.2 MB, free: 42.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01469/0.5463, allocations: 0.9608 MB / 379.2 MB, free: 41.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007035/0.5471, allocations: 164.4 kB / 379.3 MB, free: 41.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.873e-05/0.5472, allocations: 2.5 kB / 379.3 MB, free: 41.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004621/0.5477, allocations: 110.3 kB / 379.5 MB, free: 41.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 5.931e-06/0.5477, allocations: 0 / 379.5 MB, free: 41.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001033/0.5488, allocations: 214.2 kB / 379.7 MB, free: 41.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.086e-05/0.5489, allocations: 59.41 kB / 379.7 MB, free: 41.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000287/0.5492, allocations: 159.5 kB / 379.9 MB, free: 41.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.296e-05/0.5493, allocations: 33.45 kB / 379.9 MB, free: 41.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.5494, allocations: 220.2 kB / 380.1 MB, free: 40.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.558e-05/0.5496, allocations: 52.23 kB / 380.2 MB, free: 40.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/0.5496, allocations: 5.281 kB / 380.2 MB, free: 40.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.5497, allocations: 325.8 kB / 380.5 MB, free: 40.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003208/0.5501, allocations: 61.69 kB / 380.6 MB, free: 40.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003891/0.5505, allocations: 140 kB / 380.7 MB, free: 40.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000348/0.5509, allocations: 75.59 kB / 380.8 MB, free: 40.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.157e-06/0.5509, allocations: 0.9688 kB / 380.8 MB, free: 40.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001014/0.5519, allocations: 246.7 kB / 381 MB, free: 40.17 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.568e-05/0.552, allocations: 6.281 kB / 381 MB, free: 40.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.552, allocations: 6.344 kB / 381 MB, free: 40.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.644e-05/0.5521, allocations: 8.922 kB / 381 MB, free: 40.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003524/0.5524, allocations: 34.45 kB / 381.1 MB, free: 40.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.23e-05/0.5525, allocations: 8.359 kB / 381.1 MB, free: 40.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003081/0.5528, allocations: 32.11 kB / 381.1 MB, free: 40.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-05/0.5529, allocations: 9.75 kB / 381.1 MB, free: 40.12 MB / 298.7 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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,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.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003404/0.5533, allocations: 162 kB / 381.3 MB, free: 39.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.466e-05/0.5534, allocations: 9.531 kB / 381.3 MB, free: 39.97 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007926/0.5542, allocations: 196.9 kB / 381.5 MB, free: 39.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.5542, allocations: 6.281 kB / 381.5 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/0.5542, allocations: 5.172 kB / 381.5 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.5543, allocations: 0 / 381.5 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001539/0.5558, allocations: 0.59 MB / 382.1 MB, free: 39.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.5558, allocations: 1.312 kB / 382.1 MB, free: 39.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001991/0.5561, allocations: 22.25 kB / 382.1 MB, free: 39.33 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.659e-06/0.5561, allocations: 9.125 kB / 382.1 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.24e-05/0.5561, allocations: 10.59 kB / 382.1 MB, free: 39.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.5562, allocations: 0 / 382.1 MB, free: 39.31 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.5562, allocations: 1.156 kB / 382.1 MB, free: 39.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000665/0.5569, allocations: 264.2 kB / 382.4 MB, free: 39.12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.005e-05/0.557, allocations: 90.3 kB / 382.5 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01216/0.5691, allocations: 5.422 kB / 382.5 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003218/0.5695, allocations: 12.3 kB / 382.5 MB, free: 39.01 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.5697, allocations: 24.97 kB / 382.5 MB, free: 38.99 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.286e-05/0.5698, allocations: 5.594 kB / 382.5 MB, free: 38.99 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001161/0.5699, allocations: 102.5 kB / 382.6 MB, free: 38.9 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.57, allocations: 0 / 382.6 MB, free: 38.9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008279/0.5708, allocations: 53.61 kB / 382.7 MB, free: 38.88 MB / 298.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 (step.active,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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 (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.0002406/0.5711, allocations: 109.1 kB / 382.8 MB, free: 38.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007776/0.5719, allocations: 178.5 kB / 382.9 MB, free: 38.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.5719, allocations: 0 / 382.9 MB, free: 38.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003328/0.5722, allocations: 83.56 kB / 383 MB, free: 38.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004478/0.5727, allocations: 15.42 kB / 383 MB, free: 38.67 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.574, allocations: 412 kB / 383.4 MB, free: 38.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.5744, allocations: 0.7442 MB / 384.2 MB, free: 37.62 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001542/0.5746, allocations: 21.41 kB / 384.2 MB, free: 37.61 MB / 298.7 MB Notification: Performance of SimCode: time 1.763e-06/0.5746, allocations: 0 / 384.2 MB, free: 37.61 MB / 298.7 MB Notification: Performance of Templates: time 0.01775/0.5924, allocations: 2.328 MB / 386.5 MB, free: 36.38 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches