Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_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_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001478/0.001478, allocations: 178.3 kB / 8.359 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 88.17 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.747e-05/1.746e-05, allocations: 4 kB / 314.8 MB, free: 9.18 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.3268, allocations: 47.57 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1197/0.4466, allocations: 75.06 MB / 437.4 MB, free: 11.27 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.4469, allocations: 63.97 kB / 437.4 MB, free: 11.21 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01216/0.459, allocations: 2.918 MB / 440.4 MB, free: 8.312 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.4591, allocations: 0 / 440.4 MB, free: 8.312 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.248e-05/0.4591, allocations: 8 kB / 440.4 MB, free: 8.305 MB / 331.1 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.000726/0.4599, allocations: 441.2 kB / 440.8 MB, free: 7.832 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.4599, allocations: 11.97 kB / 440.8 MB, free: 7.82 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.328e-05/0.46, allocations: 25.78 kB / 440.8 MB, free: 7.797 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/0.4604, allocations: 228.1 kB / 441.1 MB, free: 7.535 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.886e-05/0.4604, allocations: 12 kB / 441.1 MB, free: 7.523 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.224e-05/0.4605, allocations: 20 kB / 441.1 MB, free: 7.504 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004515/0.461, allocations: 135.9 kB / 441.2 MB, free: 7.375 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005438/0.4615, allocations: 232.9 kB / 441.5 MB, free: 7.125 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.4616, allocations: 3.938 kB / 441.5 MB, free: 7.121 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.834e-05/0.4616, allocations: 0 / 441.5 MB, free: 7.121 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.4616, allocations: 8.844 kB / 441.5 MB, free: 7.113 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.4633, allocations: 0.9008 MB / 442.4 MB, free: 6.164 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003528/0.4637, allocations: 135.1 kB / 442.5 MB, free: 6.023 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.4638, allocations: 69.27 kB / 442.6 MB, free: 5.953 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.4639, allocations: 8.172 kB / 442.6 MB, free: 5.945 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.4642, allocations: 105.9 kB / 442.7 MB, free: 5.832 MB / 331.1 MB Notification: Performance of pre-optimization done (n=23): time 3.036e-06/0.4642, allocations: 0 / 442.7 MB, free: 5.832 MB / 331.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004472/0.4646, allocations: 151 kB / 442.8 MB, free: 5.68 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.398e-05/0.4647, allocations: 55.41 kB / 442.9 MB, free: 5.613 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.4649, allocations: 140.8 kB / 443 MB, free: 5.469 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.4649, allocations: 32.14 kB / 443 MB, free: 5.434 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.4651, allocations: 210.6 kB / 443.3 MB, free: 5.223 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.049e-05/0.4652, allocations: 55.33 kB / 443.3 MB, free: 5.168 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.38e-05/0.4652, allocations: 0 / 443.3 MB, free: 5.168 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.4654, allocations: 326.8 kB / 443.6 MB, free: 4.84 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.4655, allocations: 52.66 kB / 443.7 MB, free: 4.785 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.4658, allocations: 125.5 kB / 443.8 MB, free: 4.633 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001838/0.466, allocations: 59.97 kB / 443.9 MB, free: 4.574 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.466, allocations: 0 / 443.9 MB, free: 4.574 MB / 331.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005488/0.4665, allocations: 213.2 kB / 444.1 MB, free: 4.359 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.4666, allocations: 11.95 kB / 444.1 MB, free: 4.348 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.4666, allocations: 0 / 444.1 MB, free: 4.348 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/0.4666, allocations: 4.281 kB / 444.1 MB, free: 4.344 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002604/0.4669, allocations: 40.59 kB / 444.1 MB, free: 4.305 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.4669, allocations: 4 kB / 444.1 MB, free: 4.301 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001735/0.4671, allocations: 15.78 kB / 444.1 MB, free: 4.285 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.377e-05/0.4672, allocations: 16 kB / 444.2 MB, free: 4.27 MB / 331.1 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,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete 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.0001501/0.4673, allocations: 126 kB / 444.3 MB, free: 4.141 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.837e-05/0.4674, allocations: 11.89 kB / 444.3 MB, free: 4.129 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005105/0.4679, allocations: 171.8 kB / 444.5 MB, free: 3.957 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.4679, allocations: 8 kB / 444.5 MB, free: 3.949 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.468, allocations: 3.875 kB / 444.5 MB, free: 3.949 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.468, allocations: 0 / 444.5 MB, free: 3.949 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.469, allocations: 0.5192 MB / 445 MB, free: 3.383 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.4691, allocations: 0 / 445 MB, free: 3.383 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001378/0.4692, allocations: 22.92 kB / 445 MB, free: 3.363 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.4693, allocations: 0 / 445 MB, free: 3.363 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.4693, allocations: 8 kB / 445 MB, free: 3.355 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.4693, allocations: 0.8594 kB / 445 MB, free: 3.355 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.4693, allocations: 0 / 445 MB, free: 3.355 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004496/0.4698, allocations: 255.7 kB / 445.3 MB, free: 3.09 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.135e-05/0.4699, allocations: 92.88 kB / 445.4 MB, free: 2.98 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.4699, allocations: 3.938 kB / 445.4 MB, free: 2.977 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.4701, allocations: 7.984 kB / 445.4 MB, free: 2.969 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/0.4702, allocations: 27.97 kB / 445.4 MB, free: 2.941 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/0.4702, allocations: 4 kB / 445.4 MB, free: 2.938 MB / 331.1 MB Notification: Performance of sorting global known variables: time 8.677e-05/0.4703, allocations: 99.06 kB / 445.5 MB, free: 2.844 MB / 331.1 MB Notification: Performance of sort global known variables: time 2.695e-06/0.4704, allocations: 0 / 445.5 MB, free: 2.844 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0004438/0.4708, allocations: 35.94 kB / 445.5 MB, free: 2.809 MB / 331.1 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,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * 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.0001988/0.471, allocations: 103 kB / 445.6 MB, free: 2.699 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0004363/0.4715, allocations: 156.4 kB / 445.8 MB, free: 2.547 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4715, allocations: 4.188 kB / 445.8 MB, free: 2.543 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001854/0.4717, allocations: 75.92 kB / 445.9 MB, free: 2.469 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.472, allocations: 11.94 kB / 445.9 MB, free: 2.457 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006978/0.4727, allocations: 247.1 kB / 446.1 MB, free: 2.184 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.4731, allocations: 0.7385 MB / 446.9 MB, free: 1.422 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.4732, allocations: 27.42 kB / 446.9 MB, free: 1.395 MB / 331.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4732, allocations: 0 / 446.9 MB, free: 1.395 MB / 331.1 MB Notification: Performance of Templates: time 0.006896/0.4802, allocations: 2.305 MB / 449.2 MB, free: 15.12 MB / 347.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches