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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001337/0.001338, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 225.6 MB / 234.8 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009271/0.000927, allocations: 96.55 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.013e-05/3.015e-05, allocations: 4 kB / 343.7 MB, free: 8.328 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1242, allocations: 51.48 MB / 395.2 MB, free: 4.809 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3498/0.4741, allocations: 76.77 MB / 471.9 MB, free: 14.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.4743, allocations: 67.42 kB / 472 MB, free: 14.65 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007106/0.4815, allocations: 2.998 MB / 475 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.4815, allocations: 0 / 475 MB, free: 13 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.4815, allocations: 7.984 kB / 475 MB, free: 12.99 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.0004118/0.4819, allocations: 432 kB / 475.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.482, allocations: 8.031 kB / 475.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.066e-05/0.482, allocations: 25.03 kB / 475.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001875/0.4822, allocations: 237.3 kB / 475.7 MB, free: 12.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.4823, allocations: 12 kB / 475.7 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.281e-05/0.4823, allocations: 18.06 kB / 475.7 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002455/0.4825, allocations: 139.5 kB / 475.8 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00031/0.4829, allocations: 236.7 kB / 476.1 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.4829, allocations: 0 / 476.1 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.144e-05/0.4829, allocations: 0 / 476.1 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.4829, allocations: 8 kB / 476.1 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008154/0.4837, allocations: 0.8999 MB / 477 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.4839, allocations: 160.3 kB / 477.1 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.869e-05/0.484, allocations: 76.62 kB / 477.2 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.4841, allocations: 8.141 kB / 477.2 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001586/0.4842, allocations: 124.8 kB / 477.3 MB, free: 10.99 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.4842, allocations: 0 / 477.3 MB, free: 10.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002675/0.4845, allocations: 156.2 kB / 477.5 MB, free: 10.87 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.533e-05/0.4846, allocations: 85.86 kB / 477.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.038e-05/0.4846, allocations: 141.5 kB / 477.7 MB, free: 10.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.4847, allocations: 34.97 kB / 477.8 MB, free: 10.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.324e-05/0.4847, allocations: 129.3 kB / 477.9 MB, free: 10.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.746e-05/0.4848, allocations: 62.28 kB / 477.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.878e-06/0.4848, allocations: 0 / 477.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.289e-05/0.4849, allocations: 326.4 kB / 478.3 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.905e-05/0.4849, allocations: 60.06 kB / 478.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.485, allocations: 124.4 kB / 478.4 MB, free: 9.984 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001191/0.4852, allocations: 59.2 kB / 478.5 MB, free: 9.949 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.4852, allocations: 4 kB / 478.5 MB, free: 9.945 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002606/0.4854, allocations: 212.6 kB / 478.7 MB, free: 9.789 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.4855, allocations: 20.17 kB / 478.7 MB, free: 9.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.4855, allocations: 4 kB / 478.7 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.4855, allocations: 4 kB / 478.7 MB, free: 9.762 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.4856, allocations: 31.72 kB / 478.8 MB, free: 9.738 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.4857, allocations: 7.594 kB / 478.8 MB, free: 9.734 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.768e-05/0.4858, allocations: 15.84 kB / 478.8 MB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.415e-05/0.4858, allocations: 9.406 kB / 478.8 MB, free: 9.711 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 7.128e-05/0.4859, allocations: 129 kB / 478.9 MB, free: 9.582 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.875e-05/0.4859, allocations: 15.91 kB / 478.9 MB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002706/0.4862, allocations: 171.7 kB / 479.1 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.4862, allocations: 0 / 479.1 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.4862, allocations: 4 kB / 479.1 MB, free: 9.445 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.4862, allocations: 2.531 kB / 479.1 MB, free: 9.445 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005034/0.4867, allocations: 0.5247 MB / 479.6 MB, free: 8.996 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.4867, allocations: 13.59 kB / 479.7 MB, free: 8.984 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.877e-05/0.4868, allocations: 19.42 kB / 479.7 MB, free: 8.973 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.4868, allocations: 4 kB / 479.7 MB, free: 8.969 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.4868, allocations: 1.641 kB / 479.7 MB, free: 8.969 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.4868, allocations: 4 kB / 479.7 MB, free: 8.965 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4868, allocations: 0 / 479.7 MB, free: 8.965 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002261/0.4871, allocations: 285.2 kB / 480 MB, free: 8.707 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.45e-05/0.4871, allocations: 90.17 kB / 480 MB, free: 8.602 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.4871, allocations: 2.875 kB / 480.1 MB, free: 8.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.665e-05/0.4872, allocations: 6.484 kB / 480.1 MB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.481e-05/0.4873, allocations: 28.81 kB / 480.1 MB, free: 8.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.4873, allocations: 9.578 kB / 480.1 MB, free: 8.578 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.178e-05/0.4874, allocations: 92.06 kB / 480.2 MB, free: 8.492 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4874, allocations: 0 / 480.2 MB, free: 8.492 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002746/0.4876, allocations: 36 kB / 480.2 MB, free: 8.457 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.0001195/0.4878, allocations: 106 kB / 480.3 MB, free: 8.352 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002193/0.488, allocations: 159.6 kB / 480.5 MB, free: 8.238 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.488, allocations: 7.875 kB / 480.5 MB, free: 8.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.957e-05/0.4881, allocations: 74.05 kB / 480.6 MB, free: 8.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001852/0.4883, allocations: 20.22 kB / 480.6 MB, free: 8.168 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003593/0.4887, allocations: 234.4 kB / 480.8 MB, free: 7.957 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001546/0.4888, allocations: 0.735 MB / 481.5 MB, free: 7.223 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.987e-05/0.4889, allocations: 32.45 kB / 481.6 MB, free: 7.199 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.848e-05/0.489, allocations: 20.89 kB / 481.6 MB, free: 7.18 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.489, allocations: 0 / 481.6 MB, free: 7.18 MB / 346.7 MB Notification: Performance of Templates: time 0.003926/0.4929, allocations: 1.634 MB / 483.2 MB, free: 5.984 MB / 346.7 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","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches