Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.8336/0.8336, allocations: 110.8 MB / 118.3 MB, free: 14.46 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00179/0.001789, allocations: 155.5 kB / 144 MB, free: 4.793 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.262e-05/1.264e-05, allocations: 0 / 173.8 MB, free: 22.81 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04878/0.04881, allocations: 25.18 MB / 199 MB, free: 13.71 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0569/0.1058, allocations: 33.09 MB / 232.1 MB, free: 12.56 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.1061, allocations: 59.97 kB / 232.2 MB, free: 12.5 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008498/0.1146, allocations: 2.847 MB / 235 MB, free: 9.633 MB / 186.7 MB Notification: Performance of FrontEnd: time 4.789e-06/0.1146, allocations: 0 / 235 MB, free: 9.633 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.507e-05/0.1147, allocations: 11.94 kB / 235 MB, free: 9.621 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0007961/0.1155, allocations: 431.4 kB / 235.5 MB, free: 9.156 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.475e-05/0.1155, allocations: 12.03 kB / 235.5 MB, free: 9.145 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.1156, allocations: 31.67 kB / 235.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003624/0.116, allocations: 218.8 kB / 235.7 MB, free: 8.859 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.817e-05/0.1161, allocations: 12 kB / 235.7 MB, free: 8.848 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.489e-05/0.1162, allocations: 16 kB / 235.7 MB, free: 8.832 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003996/0.1166, allocations: 141.1 kB / 235.9 MB, free: 8.695 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004234/0.117, allocations: 232.9 kB / 236.1 MB, free: 8.441 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.1171, allocations: 0 / 236.1 MB, free: 8.441 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.1171, allocations: 3.953 kB / 236.1 MB, free: 8.438 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.1171, allocations: 4 kB / 236.1 MB, free: 8.434 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001307/0.1184, allocations: 0.8972 MB / 237 MB, free: 7.477 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.1187, allocations: 139.1 kB / 237.1 MB, free: 7.332 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.1188, allocations: 65.31 kB / 237.2 MB, free: 7.266 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/0.1189, allocations: 192 / 237.2 MB, free: 7.266 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001932/0.1191, allocations: 107.4 kB / 237.3 MB, free: 7.148 MB / 186.7 MB Notification: Performance of pre-optimization done (n=23): time 1.793e-06/0.1191, allocations: 0 / 237.3 MB, free: 7.148 MB / 186.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003404/0.1194, allocations: 146.2 kB / 237.5 MB, free: 7 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.1195, allocations: 59.34 kB / 237.5 MB, free: 6.93 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001476/0.1197, allocations: 136.8 kB / 237.6 MB, free: 6.789 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 4.914e-05/0.1197, allocations: 33.7 kB / 237.7 MB, free: 6.75 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.1198, allocations: 140.2 kB / 237.8 MB, free: 6.609 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.269e-05/0.1199, allocations: 51.41 kB / 237.9 MB, free: 6.559 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.779e-06/0.1199, allocations: 0 / 237.9 MB, free: 6.559 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.1201, allocations: 326.8 kB / 238.2 MB, free: 6.23 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.1202, allocations: 56.66 kB / 238.2 MB, free: 6.172 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.1204, allocations: 129.5 kB / 238.4 MB, free: 6.016 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001366/0.1205, allocations: 59.91 kB / 238.4 MB, free: 5.957 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1206, allocations: 0 / 238.4 MB, free: 5.957 MB / 186.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003562/0.1209, allocations: 213.3 kB / 238.6 MB, free: 5.742 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.121, allocations: 4.281 kB / 238.6 MB, free: 5.738 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.121, allocations: 8 kB / 238.6 MB, free: 5.73 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.121, allocations: 4 kB / 238.6 MB, free: 5.727 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.1212, allocations: 35.86 kB / 238.7 MB, free: 5.691 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.1212, allocations: 4 kB / 238.7 MB, free: 5.688 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.1213, allocations: 15.84 kB / 238.7 MB, free: 5.672 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.771e-05/0.1213, allocations: 11.98 kB / 238.7 MB, free: 5.66 MB / 186.7 MB Warning: Assuming fixed start value for the following 1 variables: transition1.t_start:DISCRETE(unit = "s" fixed = false protected = true ) "Time instant at which the transition would fire, if waitTime would be zero" type: Real 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.0001641/0.1215, allocations: 135.9 kB / 238.8 MB, free: 5.52 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.366e-05/0.1215, allocations: 11.91 kB / 238.9 MB, free: 5.508 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003441/0.1219, allocations: 178.2 kB / 239 MB, free: 5.332 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.1219, allocations: 0 / 239 MB, free: 5.332 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.1219, allocations: 0 / 239 MB, free: 5.332 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.635e-06/0.1219, allocations: 3.984 kB / 239 MB, free: 5.328 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007797/0.1227, allocations: 0.5178 MB / 239.6 MB, free: 4.762 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.1227, allocations: 7.938 kB / 239.6 MB, free: 4.754 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.936e-05/0.1228, allocations: 16 kB / 239.6 MB, free: 4.738 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-06/0.1228, allocations: 4 kB / 239.6 MB, free: 4.734 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.1229, allocations: 3.984 kB / 239.6 MB, free: 4.73 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.1229, allocations: 0 / 239.6 MB, free: 4.73 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.1229, allocations: 0 / 239.6 MB, free: 4.73 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003619/0.1232, allocations: 259.5 kB / 239.8 MB, free: 4.461 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.195e-05/0.1233, allocations: 85.02 kB / 239.9 MB, free: 4.359 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.397e-05/0.1234, allocations: 11.98 kB / 239.9 MB, free: 4.348 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.169e-05/0.1235, allocations: 0 / 239.9 MB, free: 4.348 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.1236, allocations: 23.97 kB / 240 MB, free: 4.324 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/0.1236, allocations: 4 kB / 240 MB, free: 4.32 MB / 186.7 MB Notification: Performance of sorting global known variables: time 8.106e-05/0.1237, allocations: 103.8 kB / 240.1 MB, free: 4.219 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1237, allocations: 0 / 240.1 MB, free: 4.219 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0003795/0.1241, allocations: 28 kB / 240.1 MB, free: 4.191 MB / 186.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) * 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.0002267/0.1243, allocations: 118.9 kB / 240.2 MB, free: 4.062 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003238/0.1247, allocations: 159.8 kB / 240.4 MB, free: 3.906 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.1247, allocations: 0 / 240.4 MB, free: 3.906 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.1248, allocations: 67.94 kB / 240.4 MB, free: 3.84 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.1251, allocations: 19.94 kB / 240.4 MB, free: 3.82 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005912/0.1257, allocations: 221.2 kB / 240.7 MB, free: 3.578 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005265/0.1262, allocations: 0.7446 MB / 241.4 MB, free: 2.809 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 0.0001143/0.1263, allocations: 26.06 kB / 241.4 MB, free: 2.785 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.849e-05/0.1264, allocations: 19.44 kB / 241.5 MB, free: 2.766 MB / 186.7 MB Notification: Performance of SimCode: time 2e-07/0.1264, allocations: 0 / 241.5 MB, free: 2.766 MB / 186.7 MB Notification: Performance of Templates: time 0.005479/0.1319, allocations: 1.609 MB / 243.1 MB, free: 1.16 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)