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.00119/0.00119, allocations: 109.4 kB / 18.36 MB, free: 4.637 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.001115/0.001115, allocations: 192 kB / 19.29 MB, free: 3.715 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.455/1.455, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001407/0.001407, allocations: 51.92 kB / 282.1 MB, free: 2.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08792/0.08934, allocations: 46.62 MB / 328.7 MB, free: 3.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002746/0.09212, allocations: 1.473 MB / 330.2 MB, free: 2.293 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006298/0.09277, allocations: 255.2 kB / 330.4 MB, free: 2.043 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.09294, allocations: 0 / 330.4 MB, free: 2.043 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001396/0.09311, allocations: 35.61 kB / 330.5 MB, free: 2.008 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.602e-05/0.09319, allocations: 11.81 kB / 330.5 MB, free: 1.996 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004743/0.09367, allocations: 115.8 kB / 330.6 MB, free: 1.883 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003967/0.09408, allocations: 259.6 kB / 330.8 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003117/0.0944, allocations: 166.3 kB / 331 MB, free: 1.461 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001154/0.09452, allocations: 79.78 kB / 331.1 MB, free: 1.383 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.09466, allocations: 99.52 kB / 331.2 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.107e-05/0.09471, allocations: 24 kB / 331.2 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.554e-05/0.09479, allocations: 28 kB / 331.2 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.784e-05/0.09486, allocations: 51.91 kB / 331.3 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.09497, allocations: 99.5 kB / 331.4 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002758/0.09526, allocations: 235.1 kB / 331.6 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.09527, allocations: 4 kB / 331.6 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09528, allocations: 0 / 331.6 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.0953, allocations: 0 / 331.6 MB, free: 0.8516 MB / 270.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.0007003/0.096, allocations: 490.4 kB / 332.1 MB, free: 324 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.09605, allocations: 8.031 kB / 332.1 MB, free: 316 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.539e-05/0.09613, allocations: 24.75 kB / 332.1 MB, free: 292 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003015/0.09644, allocations: 228 kB / 332.4 MB, free: 24 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.438e-05/0.09649, allocations: 20.94 kB / 332.4 MB, free: 4 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.356e-05/0.09655, allocations: 28.42 kB / 332.4 MB, free: 15.97 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004111/0.09697, allocations: 247.9 kB / 332.6 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.09699, allocations: 4.125 kB / 332.6 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.09702, allocations: 7.938 kB / 332.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.09703, allocations: 8 kB / 332.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003211/0.09736, allocations: 157.7 kB / 332.8 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009951/0.09836, allocations: 0.6935 MB / 333.5 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002762/0.09865, allocations: 174.7 kB / 333.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.09877, allocations: 80.83 kB / 333.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.0988, allocations: 7.984 kB / 333.8 MB, free: 14.54 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.09899, allocations: 123.2 kB / 333.9 MB, free: 14.4 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.099, allocations: 0 / 333.9 MB, free: 14.4 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004024/0.09941, allocations: 221.3 kB / 334.1 MB, free: 14.18 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.09946, allocations: 55.41 kB / 334.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.09957, allocations: 145.9 kB / 334.3 MB, free: 13.96 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.444e-05/0.09963, allocations: 37.7 kB / 334.3 MB, free: 13.92 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.453e-05/0.09971, allocations: 124.6 kB / 334.5 MB, free: 13.79 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.749e-05/0.09977, allocations: 67.12 kB / 334.5 MB, free: 13.73 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/0.09992, allocations: 74.02 kB / 334.6 MB, free: 13.64 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.1001, allocations: 326.8 kB / 334.9 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.1002, allocations: 64.62 kB / 335 MB, free: 13.25 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001483/0.1003, allocations: 128 kB / 335.1 MB, free: 13.11 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002133/0.1006, allocations: 178.6 kB / 335.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1006, allocations: 0 / 335.3 MB, free: 12.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003265/0.1009, allocations: 245.2 kB / 335.5 MB, free: 12.66 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.1009, allocations: 8 kB / 335.5 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1009, allocations: 3.984 kB / 335.5 MB, free: 12.65 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.101, allocations: 4 kB / 335.5 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.1011, allocations: 31.92 kB / 335.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.1011, allocations: 7.938 kB / 335.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.114e-05/0.1012, allocations: 31.7 kB / 335.6 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.1012, allocations: 16.22 kB / 335.6 MB, free: 12.56 MB / 286.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.000116/0.1014, allocations: 154 kB / 335.8 MB, free: 12.4 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/0.1014, allocations: 15.75 kB / 335.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003069/0.1017, allocations: 190.4 kB / 336 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.1017, allocations: 4 kB / 336 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.1017, allocations: 0 / 336 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.1017, allocations: 7.984 kB / 336 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006358/0.1024, allocations: 0.5724 MB / 336.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.1024, allocations: 0 / 336.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.549e-05/0.1025, allocations: 19.92 kB / 336.6 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.1025, allocations: 0 / 336.6 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.1025, allocations: 8 kB / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.1025, allocations: 0 / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1025, allocations: 3.938 kB / 336.6 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002815/0.1028, allocations: 271.3 kB / 336.9 MB, free: 11.24 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.488e-05/0.1029, allocations: 96.86 kB / 336.9 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.916e-05/0.1029, allocations: 7.984 kB / 337 MB, free: 11.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.451e-05/0.103, allocations: 11.94 kB / 337 MB, free: 11.11 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.401e-05/0.1031, allocations: 27.91 kB / 337 MB, free: 11.08 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.1031, allocations: 4 kB / 337 MB, free: 11.07 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.202e-05/0.1031, allocations: 95.27 kB / 337.1 MB, free: 10.98 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1031, allocations: 4 kB / 337.1 MB, free: 10.98 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002868/0.1034, allocations: 47.84 kB / 337.1 MB, free: 10.93 MB / 286.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.0001384/0.1036, allocations: 119.2 kB / 337.3 MB, free: 10.8 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003067/0.1039, allocations: 179.8 kB / 337.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1039, allocations: 0 / 337.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.1041, allocations: 91.84 kB / 337.5 MB, free: 10.54 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.1044, allocations: 31.91 kB / 337.6 MB, free: 10.5 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005781/0.1049, allocations: 317.2 kB / 337.9 MB, free: 10.17 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.1053, allocations: 0.7324 MB / 338.6 MB, free: 9.414 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.589e-05/0.1054, allocations: 21.94 kB / 338.6 MB, free: 9.395 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.776e-05/0.1054, allocations: 27.44 kB / 338.6 MB, free: 9.371 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1054, allocations: 0 / 338.6 MB, free: 9.371 MB / 286.1 MB Notification: Performance of Templates: time 0.005358/0.1108, allocations: 1.877 MB / 340.5 MB, free: 7.504 MB / 286.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/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