Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009876/0.0009875, allocations: 176.5 kB / 17.39 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.3 MB / 241.4 MB, free: 9.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009404/0.0009401, allocations: 98.19 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.000342, allocations: 15.92 kB / 352.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2959, allocations: 50.41 MB / 402.7 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1169/0.4129, allocations: 76.09 MB / 478.8 MB, free: 4.242 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.4133, allocations: 67.97 kB / 478.9 MB, free: 4.176 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0104/0.4237, allocations: 2.914 MB / 481.8 MB, free: 1.234 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.4238, allocations: 0 / 481.8 MB, free: 1.234 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.033e-05/0.4238, allocations: 8 kB / 481.8 MB, free: 1.227 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.0008309/0.4246, allocations: 436 kB / 482.2 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.771e-05/0.4247, allocations: 12.03 kB / 482.2 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.343e-05/0.4248, allocations: 24.66 kB / 482.3 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.4252, allocations: 224.5 kB / 482.5 MB, free: 472 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.726e-05/0.4252, allocations: 28.92 kB / 482.5 MB, free: 440 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.352e-05/0.4253, allocations: 24.38 kB / 482.5 MB, free: 416 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005894/0.4259, allocations: 244 kB / 482.8 MB, free: 164 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.4259, allocations: 4.188 kB / 482.8 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.341e-05/0.426, allocations: 11.94 kB / 482.8 MB, free: 148 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.426, allocations: 8 kB / 482.8 MB, free: 140 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004582/0.4265, allocations: 157.7 kB / 483 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001557/0.428, allocations: 0.6858 MB / 483.6 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004292/0.4285, allocations: 166.8 kB / 483.8 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/0.4287, allocations: 84.88 kB / 483.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.4287, allocations: 0 / 483.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002963/0.429, allocations: 121.1 kB / 484 MB, free: 14.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 2.184e-06/0.429, allocations: 0 / 484 MB, free: 14.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006301/0.4297, allocations: 221 kB / 484.2 MB, free: 14.64 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.859e-05/0.4297, allocations: 59.34 kB / 484.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.4299, allocations: 155.5 kB / 484.4 MB, free: 14.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.716e-05/0.43, allocations: 37.7 kB / 484.5 MB, free: 14.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.4301, allocations: 132.6 kB / 484.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.97e-05/0.4302, allocations: 63.25 kB / 484.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.562e-05/0.4302, allocations: 4 kB / 484.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.4304, allocations: 334.8 kB / 485 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001674/0.4306, allocations: 60.62 kB / 485.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002315/0.4309, allocations: 132.1 kB / 485.2 MB, free: 13.61 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003666/0.4312, allocations: 175.1 kB / 485.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.4313, allocations: 0 / 485.4 MB, free: 13.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005917/0.4319, allocations: 241.2 kB / 485.6 MB, free: 13.17 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.4319, allocations: 8 kB / 485.6 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.4319, allocations: 0 / 485.6 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/0.4319, allocations: 4 kB / 485.6 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001951/0.4321, allocations: 31.92 kB / 485.6 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.404e-05/0.4322, allocations: 8.203 kB / 485.6 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.4323, allocations: 23.92 kB / 485.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.192e-05/0.4324, allocations: 12 kB / 485.7 MB, free: 13.09 MB / 362.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.0002135/0.4326, allocations: 149.8 kB / 485.8 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.547e-05/0.4326, allocations: 19.75 kB / 485.8 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000481/0.4331, allocations: 194.3 kB / 486 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.445e-06/0.4332, allocations: 4 kB / 486 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4332, allocations: 4 kB / 486 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.4332, allocations: 3.984 kB / 486 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.4342, allocations: 0.5583 MB / 486.6 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.4342, allocations: 0 / 486.6 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.4343, allocations: 16 kB / 486.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.4344, allocations: 0 / 486.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.4344, allocations: 11.98 kB / 486.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.4344, allocations: 0 / 486.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.4344, allocations: 3.938 kB / 486.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004262/0.4348, allocations: 287.5 kB / 486.9 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.341e-05/0.4349, allocations: 88.95 kB / 487 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.188e-05/0.435, allocations: 8 kB / 487 MB, free: 11.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001214/0.4351, allocations: 8 kB / 487 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.504e-05/0.4352, allocations: 31.89 kB / 487 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/0.4352, allocations: 8 kB / 487.1 MB, free: 11.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.954e-05/0.4353, allocations: 94.64 kB / 487.1 MB, free: 11.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4353, allocations: 3.938 kB / 487.1 MB, free: 11.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005156/0.4359, allocations: 40 kB / 487.2 MB, free: 11.47 MB / 362.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.0002384/0.4361, allocations: 111.2 kB / 487.3 MB, free: 11.35 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004831/0.4366, allocations: 180.1 kB / 487.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4366, allocations: 8.062 kB / 487.5 MB, free: 11.17 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000197/0.4368, allocations: 83.89 kB / 487.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.4373, allocations: 16.62 kB / 487.6 MB, free: 11.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009727/0.4383, allocations: 382.8 kB / 487.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/0.4388, allocations: 0.7326 MB / 488.7 MB, free: 9.906 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001283/0.4389, allocations: 21.95 kB / 488.7 MB, free: 9.887 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.024e-05/0.439, allocations: 23.42 kB / 488.7 MB, free: 9.867 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.439, allocations: 3.938 kB / 488.7 MB, free: 9.863 MB / 362.7 MB Notification: Performance of Templates: time 0.007348/0.4464, allocations: 1.676 MB / 490.4 MB, free: 8.199 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches