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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01033/0.01033, allocations: 102.3 kB / 15.73 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001743/0.001743, allocations: 192.6 kB / 16.67 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.547/1.547, allocations: 205.1 MB / 222.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 48.39 kB / 326.5 MB, free: 3.359 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1247, allocations: 46.63 MB / 373.1 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003583/0.1284, allocations: 1.683 MB / 374.8 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.1295, allocations: 263.2 kB / 375.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002409/0.1297, allocations: 4 kB / 375.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002453/0.13, allocations: 19.69 kB / 375.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001427/0.1302, allocations: 23.8 kB / 375.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007123/0.1309, allocations: 119.8 kB / 375.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005364/0.1315, allocations: 259.5 kB / 375.5 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004552/0.1319, allocations: 185.5 kB / 375.7 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001475/0.1321, allocations: 95.62 kB / 375.8 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.1323, allocations: 99.53 kB / 375.9 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.425e-05/0.1323, allocations: 24 kB / 375.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.1324, allocations: 35.98 kB / 375.9 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.867e-05/0.1325, allocations: 51.84 kB / 376 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.1327, allocations: 99.45 kB / 376.1 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004638/0.1332, allocations: 259 kB / 376.3 MB, free: 1.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/0.1332, allocations: 4 kB / 376.3 MB, free: 1.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1332, allocations: 0 / 376.3 MB, free: 1.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.1332, allocations: 0 / 376.3 MB, free: 1.406 MB / 318.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.001123/0.1344, allocations: 490.2 kB / 376.8 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.1344, allocations: 11.97 kB / 376.8 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/0.1345, allocations: 24.69 kB / 376.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004397/0.135, allocations: 228 kB / 377.1 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.908e-05/0.135, allocations: 20.94 kB / 377.1 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.174e-05/0.1351, allocations: 28.38 kB / 377.1 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004571/0.1356, allocations: 278.5 kB / 377.4 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.1356, allocations: 192 / 377.4 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.943e-05/0.1356, allocations: 15.94 kB / 377.4 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.1356, allocations: 4 kB / 377.4 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003131/0.136, allocations: 165.6 kB / 377.6 MB, free: 64 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2661/0.4021, allocations: 0.9565 MB / 378.5 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003305/0.4024, allocations: 156.9 kB / 378.7 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.4026, allocations: 73.98 kB / 378.8 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.4026, allocations: 9.438 kB / 378.8 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002091/0.4028, allocations: 122.3 kB / 378.9 MB, free: 12.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.387e-06/0.4028, allocations: 1.922 kB / 378.9 MB, free: 12.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004899/0.4033, allocations: 208.7 kB / 379.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.4034, allocations: 60.36 kB / 379.1 MB, free: 12.31 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.4035, allocations: 154.9 kB / 379.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.4035, allocations: 38.45 kB / 379.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.385e-05/0.4036, allocations: 138.4 kB / 379.5 MB, free: 12.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.521e-05/0.4037, allocations: 63.34 kB / 379.5 MB, free: 12.03 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001211/0.4038, allocations: 77.7 kB / 379.6 MB, free: 12.01 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.853e-05/0.4039, allocations: 326 kB / 379.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.404, allocations: 63.17 kB / 380 MB, free: 11.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.4042, allocations: 145 kB / 380.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.4045, allocations: 188.3 kB / 380.3 MB, free: 11.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.4045, allocations: 7.375 kB / 380.3 MB, free: 11.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004573/0.405, allocations: 251.2 kB / 380.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.768e-05/0.405, allocations: 6.406 kB / 380.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.405, allocations: 3.812 kB / 380.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.629e-05/0.405, allocations: 5.094 kB / 380.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.4052, allocations: 35.75 kB / 380.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.781e-05/0.4053, allocations: 4.156 kB / 380.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001206/0.4054, allocations: 32.59 kB / 380.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.182e-05/0.4054, allocations: 11.47 kB / 380.7 MB, free: 11.43 MB / 318.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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001436/0.4056, allocations: 160 kB / 380.8 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.4056, allocations: 15.81 kB / 380.8 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004294/0.406, allocations: 196.5 kB / 381 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.4061, allocations: 3.344 kB / 381 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.046e-06/0.4061, allocations: 6.219 kB / 381 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.4061, allocations: 2.234 kB / 381 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008305/0.4069, allocations: 0.5854 MB / 381.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.4069, allocations: 0 / 381.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.525e-05/0.407, allocations: 18.11 kB / 381.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.407, allocations: 1 kB / 381.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.4071, allocations: 6.641 kB / 381.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.4071, allocations: 5.188 kB / 381.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4071, allocations: 1.875 kB / 381.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003271/0.4074, allocations: 270.7 kB / 381.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.998e-05/0.4075, allocations: 93.23 kB / 382 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.39e-05/0.4075, allocations: 5.406 kB / 382 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.815e-05/0.4076, allocations: 14.81 kB / 382 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.144e-05/0.4077, allocations: 19.16 kB / 382 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/0.4077, allocations: 10.66 kB / 382.1 MB, free: 10.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.743e-05/0.4077, allocations: 100.4 kB / 382.2 MB, free: 10.36 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4078, allocations: 4 kB / 382.2 MB, free: 10.35 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003166/0.4081, allocations: 51.86 kB / 382.2 MB, free: 10.34 MB / 318.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.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001426/0.4082, allocations: 114.2 kB / 382.3 MB, free: 10.24 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003275/0.4086, allocations: 185.9 kB / 382.5 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4086, allocations: 4 kB / 382.5 MB, free: 10.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.4087, allocations: 81.48 kB / 382.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.409, allocations: 27.52 kB / 382.6 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006245/0.4096, allocations: 334.2 kB / 382.9 MB, free: 9.918 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.4099, allocations: 0.7318 MB / 383.7 MB, free: 9.223 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.41, allocations: 25.73 kB / 383.7 MB, free: 9.219 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.522e-05/0.4101, allocations: 25.83 kB / 383.7 MB, free: 9.207 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4101, allocations: 0 / 383.7 MB, free: 9.207 MB / 318.1 MB Notification: Performance of Templates: time 0.006582/0.4167, allocations: 1.874 MB / 385.6 MB, free: 9.066 MB / 318.1 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)