Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009598/0.009598, allocations: 105 kB / 15.73 MB, free: 6.055 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.001808/0.001808, allocations: 190.7 kB / 16.67 MB, free: 5.977 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.688/1.688, allocations: 205.1 MB / 222.5 MB, free: 12.24 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.00121/0.00121, allocations: 51.94 kB / 326.5 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.114, allocations: 46.61 MB / 373.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003247/0.1173, allocations: 1.67 MB / 374.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006642/0.118, allocations: 259.2 kB / 375.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.708e-05/0.1181, allocations: 4 kB / 375.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001518/0.1183, allocations: 31.67 kB / 375.1 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-05/0.1183, allocations: 11.81 kB / 375.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004516/0.1188, allocations: 127.8 kB / 375.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003425/0.1191, allocations: 259.6 kB / 375.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003672/0.1195, allocations: 194.8 kB / 375.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001053/0.1196, allocations: 87.72 kB / 375.8 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.1198, allocations: 99.52 kB / 375.8 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.607e-05/0.1199, allocations: 24 kB / 375.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.091e-05/0.12, allocations: 32 kB / 375.9 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.418e-05/0.12, allocations: 55.84 kB / 376 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.1202, allocations: 115.4 kB / 376.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000437/0.1206, allocations: 246.9 kB / 376.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.115e-05/0.1207, allocations: 7.984 kB / 376.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1207, allocations: 0 / 376.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.555e-05/0.1207, allocations: 0 / 376.3 MB, free: 1.387 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.0009542/0.1217, allocations: 493.5 kB / 376.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.1217, allocations: 8.031 kB / 376.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.994e-05/0.1218, allocations: 28.73 kB / 376.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.1222, allocations: 240 kB / 377.1 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.644e-05/0.1223, allocations: 28.92 kB / 377.1 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.35e-05/0.1223, allocations: 28.38 kB / 377.1 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005037/0.1229, allocations: 274.5 kB / 377.4 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.1229, allocations: 192 / 377.4 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.1229, allocations: 15.94 kB / 377.4 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.1229, allocations: 8 kB / 377.4 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000339/0.1233, allocations: 165.6 kB / 377.6 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3031/0.4264, allocations: 0.9577 MB / 378.5 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/0.4268, allocations: 156 kB / 378.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001284/0.4269, allocations: 74.92 kB / 378.8 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.427, allocations: 6.125 kB / 378.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.4272, allocations: 121.6 kB / 378.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.715e-06/0.4272, allocations: 0 / 378.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004983/0.4277, allocations: 218 kB / 379.1 MB, free: 12.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.463e-05/0.4278, allocations: 58.03 kB / 379.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.4279, allocations: 154.2 kB / 379.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/0.428, allocations: 38.05 kB / 379.3 MB, free: 12.13 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.596e-05/0.4281, allocations: 143.3 kB / 379.5 MB, free: 12.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.207e-05/0.4281, allocations: 63 kB / 379.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.4283, allocations: 81 kB / 379.6 MB, free: 11.97 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.975e-05/0.4284, allocations: 326.6 kB / 379.9 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.4285, allocations: 63.89 kB / 380 MB, free: 11.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/0.4287, allocations: 141.1 kB / 380.1 MB, free: 11.58 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000248/0.429, allocations: 192.4 kB / 380.3 MB, free: 11.49 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.68e-06/0.429, allocations: 6.688 kB / 380.3 MB, free: 11.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004948/0.4295, allocations: 252.6 kB / 380.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.4295, allocations: 5.5 kB / 380.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.4295, allocations: 5.406 kB / 380.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.675e-05/0.4296, allocations: 5.938 kB / 380.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.4297, allocations: 34.39 kB / 380.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.785e-05/0.4298, allocations: 8.25 kB / 380.6 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.4299, allocations: 31.06 kB / 380.7 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.564e-05/0.43, allocations: 15.83 kB / 380.7 MB, free: 11.38 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.0001385/0.4301, allocations: 159 kB / 380.8 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.776e-05/0.4301, allocations: 15.36 kB / 380.9 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004214/0.4306, allocations: 193.7 kB / 381.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.4306, allocations: 2.5 kB / 381.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.4306, allocations: 3.781 kB / 381.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.475e-06/0.4306, allocations: 1.938 kB / 381.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008377/0.4315, allocations: 0.5887 MB / 381.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.4315, allocations: 1.156 kB / 381.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8e-05/0.4316, allocations: 25.55 kB / 381.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.4316, allocations: 1.125 kB / 381.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.4316, allocations: 1.75 kB / 381.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.4316, allocations: 6.25 kB / 381.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4316, allocations: 0.7188 kB / 381.7 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003086/0.4319, allocations: 278 kB / 382 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.699e-05/0.432, allocations: 90.41 kB / 382 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/0.432, allocations: 7.109 kB / 382.1 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.129e-05/0.4321, allocations: 11.69 kB / 382.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.327e-05/0.4322, allocations: 21.77 kB / 382.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.4322, allocations: 5.547 kB / 382.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.415e-05/0.4323, allocations: 102 kB / 382.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4323, allocations: 288 / 382.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003467/0.4327, allocations: 62.97 kB / 382.2 MB, free: 10.28 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,step.active,transition1.enableFire,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.0001361/0.4328, allocations: 107.3 kB / 382.4 MB, free: 10.19 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003493/0.4332, allocations: 189.3 kB / 382.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.4332, allocations: 0 / 382.5 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.4333, allocations: 80.06 kB / 382.6 MB, free: 10.1 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003841/0.4337, allocations: 23.78 kB / 382.6 MB, free: 10.09 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005995/0.4343, allocations: 342.1 kB / 383 MB, free: 9.855 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001652/0.4345, allocations: 0.7342 MB / 383.7 MB, free: 9.16 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.057e-05/0.4346, allocations: 25.28 kB / 383.7 MB, free: 9.156 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.996e-05/0.4347, allocations: 26.44 kB / 383.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4347, allocations: 0 / 383.8 MB, free: 9.145 MB / 318.1 MB Notification: Performance of Templates: time 0.006393/0.4411, allocations: 1.895 MB / 385.7 MB, free: 9.004 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)