Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00176/0.001761, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 225.6 MB / 234.8 MB, free: 3.199 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009028/0.0009022, allocations: 103.1 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.782e-05/1.785e-05, allocations: 7.984 kB / 343.7 MB, free: 8.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1102, allocations: 51.48 MB / 395.2 MB, free: 4.711 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3341/0.4443, allocations: 76.75 MB / 471.9 MB, free: 14.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.4445, allocations: 65.33 kB / 472 MB, free: 14.52 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007579/0.4521, allocations: 3.017 MB / 475 MB, free: 12.85 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4522, allocations: 0 / 475 MB, free: 12.85 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.4522, allocations: 4 kB / 475 MB, free: 12.84 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.0004522/0.4526, allocations: 442.5 kB / 475.4 MB, free: 12.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.4527, allocations: 8.031 kB / 475.4 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.677e-05/0.4527, allocations: 25.17 kB / 475.5 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002098/0.453, allocations: 237.8 kB / 475.7 MB, free: 12.15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.959e-05/0.453, allocations: 12 kB / 475.7 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.228e-05/0.453, allocations: 17.55 kB / 475.7 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002488/0.4533, allocations: 140.5 kB / 475.8 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.4536, allocations: 233.2 kB / 476.1 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.4536, allocations: 0 / 476.1 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.4537, allocations: 1.219 kB / 476.1 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.4537, allocations: 8 kB / 476.1 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008614/0.4545, allocations: 0.9071 MB / 477 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002022/0.4548, allocations: 162.1 kB / 477.2 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.367e-05/0.4549, allocations: 70.86 kB / 477.2 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.4549, allocations: 7.984 kB / 477.2 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001563/0.455, allocations: 137.3 kB / 477.4 MB, free: 10.83 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.4551, allocations: 0 / 477.4 MB, free: 10.83 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002583/0.4553, allocations: 150.4 kB / 477.5 MB, free: 10.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/0.4554, allocations: 81.11 kB / 477.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.782e-05/0.4555, allocations: 143.3 kB / 477.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.4555, allocations: 35.31 kB / 477.8 MB, free: 10.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.332e-05/0.4555, allocations: 136.2 kB / 477.9 MB, free: 10.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.567e-05/0.4556, allocations: 62.19 kB / 478 MB, free: 10.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-06/0.4556, allocations: 0 / 478 MB, free: 10.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.119e-05/0.4557, allocations: 327.1 kB / 478.3 MB, free: 9.977 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.755e-05/0.4557, allocations: 57.41 kB / 478.3 MB, free: 9.941 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.4558, allocations: 123.5 kB / 478.5 MB, free: 9.824 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.226e-05/0.4559, allocations: 64.61 kB / 478.5 MB, free: 9.785 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.456, allocations: 4 kB / 478.5 MB, free: 9.781 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002541/0.4562, allocations: 208.3 kB / 478.7 MB, free: 9.625 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.4562, allocations: 15.92 kB / 478.7 MB, free: 9.609 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.4562, allocations: 5.562 kB / 478.7 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.4563, allocations: 5.547 kB / 478.8 MB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.4564, allocations: 35.5 kB / 478.8 MB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.663e-06/0.4564, allocations: 4 kB / 478.8 MB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.819e-05/0.4565, allocations: 13.69 kB / 478.8 MB, free: 9.559 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.4566, allocations: 16.44 kB / 478.8 MB, free: 9.547 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,greaterEqual.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.27e-05/0.4566, allocations: 128.6 kB / 478.9 MB, free: 9.418 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.995e-05/0.4567, allocations: 16.84 kB / 479 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002681/0.4569, allocations: 172.5 kB / 479.1 MB, free: 9.285 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.4569, allocations: 4 kB / 479.1 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.457, allocations: 0 / 479.1 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.457, allocations: 2.391 kB / 479.1 MB, free: 9.281 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005066/0.4575, allocations: 0.5268 MB / 479.7 MB, free: 8.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.4575, allocations: 7.641 kB / 479.7 MB, free: 8.828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.983e-05/0.4576, allocations: 18.03 kB / 479.7 MB, free: 8.816 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.4576, allocations: 1.969 kB / 479.7 MB, free: 8.816 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.4576, allocations: 5.406 kB / 479.7 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4576, allocations: 0 / 479.7 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4576, allocations: 0 / 479.7 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002275/0.4578, allocations: 289.3 kB / 480 MB, free: 8.551 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.684e-05/0.4579, allocations: 94.47 kB / 480.1 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/0.4579, allocations: 0 / 480.1 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.091e-05/0.458, allocations: 9.328 kB / 480.1 MB, free: 8.438 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.278e-05/0.4581, allocations: 22.55 kB / 480.1 MB, free: 8.426 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.4581, allocations: 7.562 kB / 480.1 MB, free: 8.422 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.385e-05/0.4581, allocations: 98.36 kB / 480.2 MB, free: 8.332 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4581, allocations: 0 / 480.2 MB, free: 8.332 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002627/0.4584, allocations: 45.44 kB / 480.2 MB, free: 8.289 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,greaterEqual.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.0001103/0.4585, allocations: 102.7 kB / 480.3 MB, free: 8.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002254/0.4588, allocations: 163.1 kB / 480.5 MB, free: 8.066 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.4588, allocations: 3.938 kB / 480.5 MB, free: 8.062 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.405e-05/0.4589, allocations: 73.36 kB / 480.6 MB, free: 8.012 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.4591, allocations: 20.47 kB / 480.6 MB, free: 8 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003977/0.4595, allocations: 235.6 kB / 480.8 MB, free: 7.789 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001796/0.4596, allocations: 0.7427 MB / 481.6 MB, free: 7.051 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.01e-05/0.4597, allocations: 25.78 kB / 481.6 MB, free: 7.035 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.853e-05/0.4598, allocations: 21.08 kB / 481.6 MB, free: 7.016 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4598, allocations: 0 / 481.6 MB, free: 7.016 MB / 346.7 MB Notification: Performance of Templates: time 0.003978/0.4638, allocations: 1.645 MB / 483.3 MB, free: 5.867 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches