Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001452/0.001452, allocations: 186.2 kB / 16.41 MB, free: 5.727 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.818/1.818, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001106/0.001106, allocations: 91.39 kB / 270.9 MB, free: 8.402 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000364/0.000364, allocations: 8 kB / 327 MB, free: 248 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3143, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1163/0.4307, allocations: 75.81 MB / 450.3 MB, free: 4.992 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.4309, allocations: 67.97 kB / 450.4 MB, free: 4.926 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0114/0.4424, allocations: 2.997 MB / 453.4 MB, free: 1.906 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4424, allocations: 0 / 453.4 MB, free: 1.906 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.4424, allocations: 12 kB / 453.4 MB, free: 1.895 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006968/0.4431, allocations: 456.4 kB / 453.8 MB, free: 1.406 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.4432, allocations: 12.03 kB / 453.9 MB, free: 1.395 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.517e-05/0.4433, allocations: 19.81 kB / 453.9 MB, free: 1.375 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000303/0.4436, allocations: 226.8 kB / 454.1 MB, free: 1.113 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.582e-05/0.4437, allocations: 24.56 kB / 454.1 MB, free: 1.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.665e-05/0.4437, allocations: 24 kB / 454.1 MB, free: 1.066 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006212/0.4444, allocations: 266 kB / 454.4 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.4444, allocations: 4 kB / 454.4 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.698e-05/0.4444, allocations: 7.984 kB / 454.4 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.4445, allocations: 15.94 kB / 454.4 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000476/0.445, allocations: 161.6 kB / 454.6 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001488/0.4465, allocations: 0.9559 MB / 455.5 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003991/0.4469, allocations: 163.2 kB / 455.7 MB, free: 15.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.4469, allocations: 4.188 kB / 455.7 MB, free: 15.4 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002588/0.4472, allocations: 110 kB / 455.8 MB, free: 15.29 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 4.578e-06/0.4472, allocations: 0 / 455.8 MB, free: 15.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005841/0.4478, allocations: 213.8 kB / 456 MB, free: 15.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.4479, allocations: 59.41 kB / 456.1 MB, free: 15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.448, allocations: 145 kB / 456.2 MB, free: 14.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.087e-05/0.4481, allocations: 41.7 kB / 456.3 MB, free: 14.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.4482, allocations: 206.9 kB / 456.5 MB, free: 14.6 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.15e-05/0.4483, allocations: 59.25 kB / 456.5 MB, free: 14.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.217e-05/0.4483, allocations: 8 kB / 456.5 MB, free: 14.53 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.4484, allocations: 324.8 kB / 456.9 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.4486, allocations: 64.62 kB / 456.9 MB, free: 14.14 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002471/0.4489, allocations: 141.7 kB / 457.1 MB, free: 13.97 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.4491, allocations: 73.05 kB / 457.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.4491, allocations: 0 / 457.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005677/0.4497, allocations: 253.1 kB / 457.4 MB, free: 13.65 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.4497, allocations: 11.11 kB / 457.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.4498, allocations: 8 kB / 457.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.4498, allocations: 4 kB / 457.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002376/0.45, allocations: 36.2 kB / 457.4 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.4501, allocations: 4 kB / 457.4 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001461/0.4502, allocations: 19.91 kB / 457.5 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.904e-05/0.4503, allocations: 11.98 kB / 457.5 MB, free: 13.56 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: 30 ($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,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001874/0.4505, allocations: 156.3 kB / 457.6 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.053e-05/0.4505, allocations: 11.86 kB / 457.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004962/0.451, allocations: 201.1 kB / 457.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.451, allocations: 8 kB / 457.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4511, allocations: 0 / 457.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.4511, allocations: 0 / 457.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.4521, allocations: 0.5915 MB / 458.4 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.4521, allocations: 0 / 458.4 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.4522, allocations: 15.92 kB / 458.4 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.4523, allocations: 4 kB / 458.4 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.89e-05/0.4523, allocations: 8 kB / 458.5 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.4523, allocations: 0 / 458.5 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.4523, allocations: 4 kB / 458.5 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004798/0.4528, allocations: 267.3 kB / 458.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.506e-05/0.4529, allocations: 96.8 kB / 458.8 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.625e-05/0.4529, allocations: 4 kB / 458.8 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.4531, allocations: 15.98 kB / 458.8 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.579e-05/0.4532, allocations: 19.97 kB / 458.9 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/0.4532, allocations: 8 kB / 458.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.692e-05/0.4533, allocations: 98.92 kB / 459 MB, free: 11.96 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4533, allocations: 0 / 459 MB, free: 11.96 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004235/0.4537, allocations: 44 kB / 459 MB, free: 11.92 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 (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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0001797/0.4539, allocations: 118.9 kB / 459.1 MB, free: 11.79 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004741/0.4544, allocations: 184.2 kB / 459.3 MB, free: 11.61 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4544, allocations: 0 / 459.3 MB, free: 11.61 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002039/0.4547, allocations: 83.84 kB / 459.4 MB, free: 11.53 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002515/0.4549, allocations: 17.38 kB / 459.4 MB, free: 11.52 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008581/0.4558, allocations: 409.6 kB / 459.8 MB, free: 11.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.4562, allocations: 0.7507 MB / 460.5 MB, free: 10.31 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.112e-05/0.4563, allocations: 19.44 kB / 460.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of SimCode: time 8.01e-07/0.4563, allocations: 0 / 460.6 MB, free: 10.29 MB / 346.7 MB Notification: Performance of Templates: time 0.005977/0.4623, allocations: 2.334 MB / 462.9 MB, free: 7.957 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches