Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001509/0.001509, allocations: 186.1 kB / 16.4 MB, free: 5.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.84/1.84, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 91.36 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003887/0.0003886, allocations: 8 kB / 326.9 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3122, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1161/0.4283, allocations: 75.16 MB / 449.7 MB, free: 5.602 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002302/0.4286, allocations: 67.97 kB / 449.7 MB, free: 5.535 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01128/0.4399, allocations: 2.844 MB / 452.6 MB, free: 2.668 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.711e-06/0.44, allocations: 0 / 452.6 MB, free: 2.668 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.64e-05/0.44, allocations: 7.938 kB / 452.6 MB, free: 2.66 MB / 330.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.0007229/0.4407, allocations: 444.6 kB / 453 MB, free: 2.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.4408, allocations: 8.031 kB / 453 MB, free: 2.172 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.801e-05/0.4409, allocations: 27.72 kB / 453.1 MB, free: 2.145 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003211/0.4412, allocations: 226.8 kB / 453.3 MB, free: 1.883 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.219e-05/0.4413, allocations: 16.56 kB / 453.3 MB, free: 1.867 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.858e-05/0.4413, allocations: 28 kB / 453.3 MB, free: 1.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005932/0.4419, allocations: 235.5 kB / 453.6 MB, free: 1.598 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.442, allocations: 7.938 kB / 453.6 MB, free: 1.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.932e-05/0.442, allocations: 8 kB / 453.6 MB, free: 1.582 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.4421, allocations: 4 kB / 453.6 MB, free: 1.578 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004737/0.4425, allocations: 157.7 kB / 453.7 MB, free: 1.426 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.4439, allocations: 0.7016 MB / 454.4 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004463/0.4444, allocations: 159.4 kB / 454.6 MB, free: 0.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.924e-05/0.4444, allocations: 192 / 454.6 MB, free: 0.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002815/0.4447, allocations: 125.8 kB / 454.7 MB, free: 376 kB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 2.214e-06/0.4448, allocations: 4 kB / 454.7 MB, free: 372 kB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006372/0.4454, allocations: 221.9 kB / 454.9 MB, free: 144 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.793e-05/0.4455, allocations: 55.41 kB / 455 MB, free: 76 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001519/0.4456, allocations: 135.9 kB / 455.1 MB, free: 15.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.424e-05/0.4457, allocations: 37.7 kB / 455.2 MB, free: 15.89 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.4458, allocations: 191.2 kB / 455.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.258e-05/0.4459, allocations: 67.14 kB / 455.4 MB, free: 15.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.244e-05/0.4459, allocations: 4 kB / 455.4 MB, free: 15.63 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4461, allocations: 330.8 kB / 455.7 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.4463, allocations: 64.56 kB / 455.8 MB, free: 15.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002427/0.4466, allocations: 128.1 kB / 455.9 MB, free: 15.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002036/0.4468, allocations: 67.05 kB / 456 MB, free: 15.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4468, allocations: 0 / 456 MB, free: 15.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005649/0.4474, allocations: 241.3 kB / 456.2 MB, free: 14.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.4474, allocations: 4 kB / 456.2 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.4474, allocations: 4 kB / 456.2 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.4474, allocations: 8.172 kB / 456.2 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002249/0.4477, allocations: 35.91 kB / 456.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.4477, allocations: 4 kB / 456.3 MB, free: 14.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.4479, allocations: 23.84 kB / 456.3 MB, free: 14.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.685e-05/0.4479, allocations: 8 kB / 456.3 MB, free: 14.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001978/0.4481, allocations: 157.7 kB / 456.5 MB, free: 14.53 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.497e-05/0.4482, allocations: 11.91 kB / 456.5 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005202/0.4487, allocations: 200.8 kB / 456.7 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.4487, allocations: 4 kB / 456.7 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.4487, allocations: 3.953 kB / 456.7 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.4488, allocations: 0 / 456.7 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.4499, allocations: 0.5689 MB / 457.3 MB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.4499, allocations: 0 / 457.3 MB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.45, allocations: 23.88 kB / 457.3 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.4501, allocations: 4 kB / 457.3 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.4501, allocations: 7.938 kB / 457.3 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.4501, allocations: 4 kB / 457.3 MB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.4501, allocations: 0 / 457.3 MB, free: 13.65 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004483/0.4506, allocations: 271.3 kB / 457.6 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.442e-05/0.4506, allocations: 92.86 kB / 457.6 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.816e-05/0.4507, allocations: 7.953 kB / 457.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.4508, allocations: 15.98 kB / 457.7 MB, free: 13.24 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.103e-05/0.4509, allocations: 19.97 kB / 457.7 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.451, allocations: 12 kB / 457.7 MB, free: 13.21 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.659e-05/0.4511, allocations: 91.27 kB / 457.8 MB, free: 13.12 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4511, allocations: 3.938 kB / 457.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003991/0.4515, allocations: 43.98 kB / 457.8 MB, free: 13.07 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) * 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 (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.0001783/0.4517, allocations: 111.2 kB / 457.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004855/0.4522, allocations: 175.8 kB / 458.1 MB, free: 12.78 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.4522, allocations: 4 kB / 458.1 MB, free: 12.77 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002063/0.4524, allocations: 83.84 kB / 458.2 MB, free: 12.69 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.4527, allocations: 19.98 kB / 458.2 MB, free: 12.67 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008329/0.4535, allocations: 397.8 kB / 458.6 MB, free: 12.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.4539, allocations: 0.7443 MB / 459.4 MB, free: 11.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.584e-05/0.454, allocations: 23.44 kB / 459.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of SimCode: time 3.046e-06/0.454, allocations: 0 / 459.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of Templates: time 0.005882/0.4599, allocations: 2.276 MB / 461.7 MB, free: 9.191 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches