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.001472/0.001472, allocations: 186.8 kB / 16.4 MB, free: 5.746 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.879/1.879, 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.001157/0.001156, allocations: 94.05 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003844/0.0003844, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3268, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1201/0.4469, allocations: 75.81 MB / 450.3 MB, free: 4.949 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.4472, allocations: 71.95 kB / 450.4 MB, free: 4.879 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01206/0.4593, allocations: 2.982 MB / 453.4 MB, free: 1.879 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4594, allocations: 4 kB / 453.4 MB, free: 1.875 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.034e-05/0.4594, allocations: 8 kB / 453.4 MB, free: 1.867 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.0007217/0.4601, allocations: 444.6 kB / 453.8 MB, free: 1.387 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.4602, allocations: 8.031 kB / 453.8 MB, free: 1.379 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.549e-05/0.4603, allocations: 27.7 kB / 453.9 MB, free: 1.352 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003419/0.4606, allocations: 222.8 kB / 454.1 MB, free: 1.094 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.935e-05/0.4607, allocations: 28.55 kB / 454.1 MB, free: 1.066 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.081e-05/0.4608, allocations: 28 kB / 454.1 MB, free: 1.039 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000629/0.4614, allocations: 270 kB / 454.4 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.4615, allocations: 0 / 454.4 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.4615, allocations: 8 kB / 454.4 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.4615, allocations: 4 kB / 454.4 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004801/0.462, allocations: 165.6 kB / 454.6 MB, free: 0.582 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001536/0.4636, allocations: 0.9598 MB / 455.5 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004033/0.464, allocations: 159.2 kB / 455.7 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.464, allocations: 8.125 kB / 455.7 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002659/0.4643, allocations: 118.1 kB / 455.8 MB, free: 15.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 2.926e-06/0.4643, allocations: 0 / 455.8 MB, free: 15.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006469/0.465, allocations: 209.9 kB / 456 MB, free: 15.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.586e-05/0.4651, allocations: 59.39 kB / 456.1 MB, free: 14.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001506/0.4652, allocations: 136.8 kB / 456.2 MB, free: 14.83 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.724e-05/0.4653, allocations: 41.69 kB / 456.2 MB, free: 14.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.4654, allocations: 207 kB / 456.5 MB, free: 14.58 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.362e-05/0.4655, allocations: 63.25 kB / 456.5 MB, free: 14.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.933e-05/0.4655, allocations: 4 kB / 456.5 MB, free: 14.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.4657, allocations: 324.8 kB / 456.8 MB, free: 14.19 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001805/0.4659, allocations: 60.62 kB / 456.9 MB, free: 14.13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/0.4661, allocations: 141.7 kB / 457 MB, free: 13.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/0.4663, allocations: 77.03 kB / 457.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.4663, allocations: 0 / 457.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005944/0.4669, allocations: 245.3 kB / 457.3 MB, free: 13.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.467, allocations: 9.562 kB / 457.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.467, allocations: 3.938 kB / 457.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.467, allocations: 4 kB / 457.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002402/0.4673, allocations: 31.92 kB / 457.4 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/0.4673, allocations: 7.984 kB / 457.4 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001643/0.4675, allocations: 20.12 kB / 457.4 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.052e-05/0.4675, allocations: 16 kB / 457.4 MB, free: 13.55 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,SetBoolean1.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.0002064/0.4678, allocations: 160.4 kB / 457.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.814e-05/0.4678, allocations: 15.77 kB / 457.6 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000535/0.4683, allocations: 188.8 kB / 457.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.4684, allocations: 4 kB / 457.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.4684, allocations: 4 kB / 457.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.4684, allocations: 3.984 kB / 457.8 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.4695, allocations: 0.5915 MB / 458.4 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.4695, allocations: 3.938 kB / 458.4 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001335/0.4697, allocations: 11.98 kB / 458.4 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.983e-06/0.4697, allocations: 4 kB / 458.4 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.4697, allocations: 4 kB / 458.4 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/0.4698, allocations: 3.938 kB / 458.4 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.4698, allocations: 4 kB / 458.4 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004626/0.4702, allocations: 271.3 kB / 458.7 MB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.8e-05/0.4703, allocations: 88.92 kB / 458.8 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.724e-05/0.4704, allocations: 7.984 kB / 458.8 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.4705, allocations: 8 kB / 458.8 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.555e-05/0.4706, allocations: 23.97 kB / 458.8 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.283e-05/0.4707, allocations: 11.92 kB / 458.8 MB, free: 12.05 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.053e-05/0.4708, allocations: 97.52 kB / 458.9 MB, free: 11.96 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4708, allocations: 4 kB / 458.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004253/0.4712, allocations: 40 kB / 459 MB, free: 11.91 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,SetBoolean1.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.0001847/0.4714, allocations: 115 kB / 459.1 MB, free: 11.79 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004771/0.4719, allocations: 171.8 kB / 459.2 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.4719, allocations: 0 / 459.2 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002032/0.4721, allocations: 80.45 kB / 459.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.4724, allocations: 33.62 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.0008662/0.4733, allocations: 409.7 kB / 459.8 MB, free: 11.08 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003304/0.4736, allocations: 0.7429 MB / 460.5 MB, free: 10.31 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.4738, allocations: 27.42 kB / 460.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of SimCode: time 1.132e-06/0.4738, allocations: 0 / 460.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of Templates: time 0.006063/0.4798, allocations: 2.329 MB / 462.9 MB, free: 7.961 MB / 346.7 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