Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00173/0.00173, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008684/0.0008686, allocations: 98.81 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.448e-05/1.46e-05, allocations: 0 / 343.7 MB, free: 8.277 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.114, allocations: 51.48 MB / 395.2 MB, free: 4.754 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3391/0.4531, allocations: 76.13 MB / 471.3 MB, free: 15.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.4534, allocations: 65.39 kB / 471.4 MB, free: 15.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006607/0.46, allocations: 2.842 MB / 474.2 MB, free: 13.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.46, allocations: 0 / 474.2 MB, free: 13.47 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.4601, allocations: 4 kB / 474.2 MB, free: 13.46 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.000426/0.4605, allocations: 445.2 kB / 474.6 MB, free: 13.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.4605, allocations: 8.031 kB / 474.6 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.222e-05/0.4606, allocations: 21.45 kB / 474.7 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.4608, allocations: 230.8 kB / 474.9 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/0.4608, allocations: 12.84 kB / 474.9 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.846e-05/0.4609, allocations: 12 kB / 474.9 MB, free: 12.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000246/0.4611, allocations: 139.6 kB / 475 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002928/0.4614, allocations: 206.5 kB / 475.2 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.4614, allocations: 0 / 475.2 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.938e-05/0.4615, allocations: 5.344 kB / 475.3 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.4615, allocations: 8 kB / 475.3 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000733/0.4622, allocations: 0.6346 MB / 475.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.4625, allocations: 159.3 kB / 476.1 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.898e-05/0.4626, allocations: 67.27 kB / 476.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.4626, allocations: 4.188 kB / 476.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001457/0.4627, allocations: 105.2 kB / 476.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.4627, allocations: 0 / 476.2 MB, free: 11.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002551/0.463, allocations: 152 kB / 476.4 MB, free: 11.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.376e-05/0.463, allocations: 58.66 kB / 476.4 MB, free: 11.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.37e-05/0.4631, allocations: 133.9 kB / 476.6 MB, free: 11.51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.4632, allocations: 33.64 kB / 476.6 MB, free: 11.47 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.868e-05/0.4632, allocations: 130.4 kB / 476.7 MB, free: 11.36 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.4633, allocations: 59.03 kB / 476.8 MB, free: 11.31 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.979e-06/0.4633, allocations: 0 / 476.8 MB, free: 11.31 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.17e-05/0.4633, allocations: 326.1 kB / 477.1 MB, free: 11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.654e-05/0.4634, allocations: 53.73 kB / 477.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.923e-05/0.4635, allocations: 118.5 kB / 477.3 MB, free: 10.85 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.323e-05/0.4636, allocations: 56.48 kB / 477.3 MB, free: 10.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.4636, allocations: 0 / 477.3 MB, free: 10.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002476/0.4639, allocations: 208.1 kB / 477.5 MB, free: 10.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.4639, allocations: 7.938 kB / 477.5 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.4639, allocations: 9.391 kB / 477.5 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.4639, allocations: 0 / 477.5 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.464, allocations: 34.66 kB / 477.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.4641, allocations: 7.953 kB / 477.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.054e-05/0.4641, allocations: 14.75 kB / 477.6 MB, free: 10.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.307e-05/0.4642, allocations: 15.66 kB / 477.6 MB, free: 10.59 MB / 346.7 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,$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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.767e-05/0.4643, allocations: 121.5 kB / 477.7 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.762e-05/0.4643, allocations: 15.81 kB / 477.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002711/0.4646, allocations: 169.5 kB / 477.9 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.4646, allocations: 4 kB / 477.9 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.4646, allocations: 0 / 477.9 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.4646, allocations: 5.453 kB / 477.9 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005049/0.4651, allocations: 0.5021 MB / 478.4 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.4651, allocations: 0 / 478.4 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.07e-05/0.4652, allocations: 13.41 kB / 478.4 MB, free: 9.906 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.4652, allocations: 5.969 kB / 478.4 MB, free: 9.902 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.4652, allocations: 3.953 kB / 478.4 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.4652, allocations: 1.781 kB / 478.4 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.4652, allocations: 0 / 478.4 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002189/0.4655, allocations: 271.4 kB / 478.7 MB, free: 9.664 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.433e-05/0.4655, allocations: 94.41 kB / 478.8 MB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.4655, allocations: 0 / 478.8 MB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.012e-05/0.4656, allocations: 9.359 kB / 478.8 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.638e-05/0.4657, allocations: 26.75 kB / 478.8 MB, free: 9.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.4657, allocations: 4 kB / 478.8 MB, free: 9.531 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.013e-05/0.4657, allocations: 100.1 kB / 478.9 MB, free: 9.441 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4658, allocations: 4 kB / 478.9 MB, free: 9.438 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002538/0.466, allocations: 29.55 kB / 479 MB, free: 9.41 MB / 346.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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * 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 (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.0001181/0.4661, allocations: 103.9 kB / 479.1 MB, free: 9.301 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002208/0.4664, allocations: 163.4 kB / 479.2 MB, free: 9.188 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.4664, allocations: 3.938 kB / 479.2 MB, free: 9.184 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.272e-05/0.4665, allocations: 79.17 kB / 479.3 MB, free: 9.129 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001868/0.4667, allocations: 15.62 kB / 479.3 MB, free: 9.121 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003509/0.467, allocations: 216.7 kB / 479.5 MB, free: 8.934 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001456/0.4672, allocations: 0.7365 MB / 480.3 MB, free: 8.199 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.387e-05/0.4673, allocations: 24.09 kB / 480.3 MB, free: 8.184 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.716e-05/0.4673, allocations: 21.22 kB / 480.3 MB, free: 8.168 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4673, allocations: 0 / 480.3 MB, free: 8.168 MB / 346.7 MB Notification: Performance of Templates: time 0.003803/0.4711, allocations: 1.624 MB / 481.9 MB, free: 7.25 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches