Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 175.9 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 221.5 MB / 230.3 MB, free: 7.551 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009442/0.0009442, allocations: 102 kB / 281.2 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.755e-05/1.757e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1066, allocations: 50.41 MB / 387.4 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3122/0.4188, allocations: 75.96 MB / 463.4 MB, free: 2.883 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001934/0.419, allocations: 63.97 kB / 463.5 MB, free: 2.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007337/0.4264, allocations: 3.014 MB / 466.5 MB, free: 15.79 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.4264, allocations: 0 / 466.5 MB, free: 15.79 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.4264, allocations: 4 kB / 466.5 MB, free: 15.79 MB / 346.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.0004956/0.4269, allocations: 436.8 kB / 466.9 MB, free: 15.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.427, allocations: 8.031 kB / 466.9 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.752e-05/0.427, allocations: 31.64 kB / 467 MB, free: 15.28 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002343/0.4273, allocations: 218.9 kB / 467.2 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/0.4273, allocations: 12 kB / 467.2 MB, free: 15.01 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.815e-05/0.4274, allocations: 20 kB / 467.2 MB, free: 14.99 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002761/0.4276, allocations: 145 kB / 467.3 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000361/0.428, allocations: 236.9 kB / 467.6 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.428, allocations: 0 / 467.6 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.4281, allocations: 0 / 467.6 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.4281, allocations: 8 kB / 467.6 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.4291, allocations: 0.9048 MB / 468.5 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002214/0.4294, allocations: 157.7 kB / 468.6 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.4295, allocations: 74.17 kB / 468.7 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.343e-05/0.4295, allocations: 4.188 kB / 468.7 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001853/0.4297, allocations: 129.2 kB / 468.8 MB, free: 13.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.4297, allocations: 4 kB / 468.8 MB, free: 13.22 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003238/0.43, allocations: 154.8 kB / 469 MB, free: 13.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.069e-05/0.4301, allocations: 85.06 kB / 469.1 MB, free: 12.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.4302, allocations: 141.2 kB / 469.2 MB, free: 12.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.4303, allocations: 33.7 kB / 469.2 MB, free: 12.78 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.974e-05/0.4304, allocations: 132.3 kB / 469.4 MB, free: 12.65 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.48e-05/0.4304, allocations: 63.3 kB / 469.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.618e-06/0.4304, allocations: 0 / 469.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.4306, allocations: 322.8 kB / 469.8 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.4307, allocations: 59.98 kB / 469.8 MB, free: 12.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.4308, allocations: 124.5 kB / 469.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/0.4309, allocations: 71.88 kB / 470 MB, free: 11.98 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.431, allocations: 0 / 470 MB, free: 11.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003157/0.4313, allocations: 213.3 kB / 470.2 MB, free: 11.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.4313, allocations: 4 kB / 470.2 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.4313, allocations: 4 kB / 470.2 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.4313, allocations: 4 kB / 470.2 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.4315, allocations: 39.8 kB / 470.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.4315, allocations: 4 kB / 470.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.53e-05/0.4316, allocations: 24.06 kB / 470.3 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.961e-05/0.4317, allocations: 16 kB / 470.3 MB, free: 11.67 MB / 346.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: 32 ($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,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.4318, allocations: 124 kB / 470.4 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.134e-05/0.4318, allocations: 7.906 kB / 470.4 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003112/0.4321, allocations: 178.2 kB / 470.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.4321, allocations: 4 kB / 470.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.4321, allocations: 0 / 470.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.4321, allocations: 0 / 470.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000624/0.4328, allocations: 0.5295 MB / 471.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.4328, allocations: 0 / 471.1 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.315e-05/0.4329, allocations: 15.98 kB / 471.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.4329, allocations: 0 / 471.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.4329, allocations: 4 kB / 471.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.4329, allocations: 4 kB / 471.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.4329, allocations: 3.953 kB / 471.2 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002835/0.4332, allocations: 281.8 kB / 471.4 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.808e-05/0.4333, allocations: 88.95 kB / 471.5 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.4333, allocations: 7.984 kB / 471.5 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.712e-05/0.4334, allocations: 3.953 kB / 471.5 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.798e-05/0.4335, allocations: 23.97 kB / 471.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.4335, allocations: 15.98 kB / 471.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.191e-05/0.4335, allocations: 95.03 kB / 471.7 MB, free: 10.2 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4336, allocations: 0 / 471.7 MB, free: 10.2 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002757/0.4338, allocations: 36 kB / 471.7 MB, free: 10.16 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,step.active,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,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001659/0.434, allocations: 111.1 kB / 471.8 MB, free: 10.04 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002843/0.4343, allocations: 160.5 kB / 472 MB, free: 9.887 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.4343, allocations: 4.562 kB / 472 MB, free: 9.883 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.4344, allocations: 79.88 kB / 472.1 MB, free: 9.805 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002088/0.4346, allocations: 25.97 kB / 472.1 MB, free: 9.781 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004204/0.4351, allocations: 234.1 kB / 472.3 MB, free: 9.523 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002926/0.4354, allocations: 0.7441 MB / 473.1 MB, free: 8.754 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.729e-05/0.4355, allocations: 18.08 kB / 473.1 MB, free: 8.738 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.143e-05/0.4355, allocations: 23.42 kB / 473.1 MB, free: 8.715 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4355, allocations: 4 kB / 473.1 MB, free: 8.711 MB / 346.7 MB Notification: Performance of Templates: time 0.00423/0.4398, allocations: 1.627 MB / 474.7 MB, free: 7.094 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches