Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001633/0.001633, allocations: 107.2 kB / 16.51 MB, free: 6.707 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.001465/0.001465, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.546/1.546, allocations: 205.1 MB / 223.3 MB, free: 12.48 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.001166/0.001166, allocations: 47.92 kB / 279.3 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1101, allocations: 46.62 MB / 325.9 MB, free: 4.918 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003034/0.1132, allocations: 1.751 MB / 327.7 MB, free: 3.148 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006541/0.1139, allocations: 283 kB / 328 MB, free: 2.871 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.786e-05/0.114, allocations: 4 kB / 328 MB, free: 2.867 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001353/0.1141, allocations: 19.8 kB / 328 MB, free: 2.848 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.462e-05/0.1142, allocations: 3.938 kB / 328 MB, free: 2.844 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003332/0.1145, allocations: 111.9 kB / 328.1 MB, free: 2.734 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002566/0.1148, allocations: 251.5 kB / 328.3 MB, free: 2.488 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002586/0.115, allocations: 187.1 kB / 328.5 MB, free: 2.301 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.011e-05/0.1151, allocations: 79.7 kB / 328.6 MB, free: 2.223 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.1152, allocations: 99.52 kB / 328.7 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.54e-05/0.1153, allocations: 16 kB / 328.7 MB, free: 2.109 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.903e-05/0.1154, allocations: 24 kB / 328.7 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.307e-05/0.1154, allocations: 47.83 kB / 328.8 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.621e-05/0.1155, allocations: 99.52 kB / 328.9 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.1157, allocations: 223.5 kB / 329.1 MB, free: 1.723 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1158, allocations: 0 / 329.1 MB, free: 1.723 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1158, allocations: 0 / 329.1 MB, free: 1.723 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.1158, allocations: 0 / 329.1 MB, free: 1.723 MB / 270.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.0006429/0.1164, allocations: 490.1 kB / 329.6 MB, free: 1.191 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.1165, allocations: 8.031 kB / 329.6 MB, free: 1.184 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.056e-05/0.1165, allocations: 28.66 kB / 329.6 MB, free: 1.156 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002243/0.1168, allocations: 228 kB / 329.8 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.33e-05/0.1168, allocations: 28.92 kB / 329.9 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.95e-05/0.1169, allocations: 28.38 kB / 329.9 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004226/0.1173, allocations: 270.5 kB / 330.2 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.1173, allocations: 192 / 330.2 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.852e-05/0.1173, allocations: 15.94 kB / 330.2 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.1173, allocations: 4 kB / 330.2 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000283/0.1176, allocations: 165.6 kB / 330.3 MB, free: 380 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001047/0.1187, allocations: 0.9673 MB / 331.3 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002653/0.119, allocations: 158.7 kB / 331.5 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.1191, allocations: 80.78 kB / 331.5 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.1191, allocations: 0 / 331.5 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.1194, allocations: 123.1 kB / 331.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.695e-06/0.1194, allocations: 0 / 331.7 MB, free: 14.96 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004158/0.1198, allocations: 217.3 kB / 331.9 MB, free: 14.74 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.1199, allocations: 51.41 kB / 331.9 MB, free: 14.68 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001588/0.12, allocations: 157.8 kB / 332.1 MB, free: 14.51 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.1201, allocations: 41.7 kB / 332.1 MB, free: 14.46 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.901e-05/0.1202, allocations: 152.4 kB / 332.3 MB, free: 14.31 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.342e-05/0.1202, allocations: 47.36 kB / 332.3 MB, free: 14.27 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.93e-05/0.1203, allocations: 81.92 kB / 332.4 MB, free: 14.18 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1205, allocations: 330.8 kB / 332.7 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.1206, allocations: 60.62 kB / 332.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.1207, allocations: 149.8 kB / 332.9 MB, free: 13.61 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002449/0.121, allocations: 188.3 kB / 333.1 MB, free: 13.4 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.121, allocations: 3.938 kB / 333.1 MB, free: 13.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000359/0.1214, allocations: 249.5 kB / 333.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.1214, allocations: 8 kB / 333.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.1214, allocations: 0 / 333.4 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.1214, allocations: 4 kB / 333.4 MB, free: 13.13 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.1216, allocations: 35.92 kB / 333.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/0.1216, allocations: 4 kB / 333.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.895e-05/0.1217, allocations: 23.78 kB / 333.4 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.811e-05/0.1218, allocations: 19.98 kB / 333.5 MB, free: 13.05 MB / 286.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.condition,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.0001822/0.1219, allocations: 160.3 kB / 333.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.691e-05/0.122, allocations: 19.81 kB / 333.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003299/0.1223, allocations: 190.7 kB / 333.8 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.1223, allocations: 4 kB / 333.8 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.1223, allocations: 0 / 333.8 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1224, allocations: 0 / 333.8 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000679/0.123, allocations: 0.5948 MB / 334.4 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.123, allocations: 4 kB / 334.4 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.386e-05/0.1231, allocations: 19.92 kB / 334.4 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.1231, allocations: 3.938 kB / 334.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.1232, allocations: 4 kB / 334.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.1232, allocations: 4 kB / 334.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1232, allocations: 0 / 334.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000284/0.1235, allocations: 267.2 kB / 334.7 MB, free: 11.7 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.477e-05/0.1235, allocations: 96.89 kB / 334.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.942e-05/0.1236, allocations: 8 kB / 334.8 MB, free: 11.58 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.341e-05/0.1236, allocations: 15.92 kB / 334.8 MB, free: 11.56 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.33e-05/0.1237, allocations: 27.84 kB / 334.9 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.1237, allocations: 4 kB / 334.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.53e-05/0.1238, allocations: 99.27 kB / 335 MB, free: 11.43 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1238, allocations: 0 / 335 MB, free: 11.43 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003137/0.1241, allocations: 51.75 kB / 335 MB, free: 11.38 MB / 286.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.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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.0001489/0.1243, allocations: 111.2 kB / 335.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003148/0.1246, allocations: 191.7 kB / 335.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1246, allocations: 0 / 335.3 MB, free: 11.08 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.1248, allocations: 79.91 kB / 335.4 MB, free: 11 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003106/0.1251, allocations: 20 kB / 335.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006311/0.1257, allocations: 406.9 kB / 335.8 MB, free: 10.55 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002983/0.126, allocations: 0.7326 MB / 336.5 MB, free: 9.797 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.209e-05/0.1261, allocations: 33.94 kB / 336.6 MB, free: 9.766 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.704e-05/0.1262, allocations: 19.44 kB / 336.6 MB, free: 9.746 MB / 286.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1262, allocations: 0 / 336.6 MB, free: 9.746 MB / 286.1 MB Notification: Performance of Templates: time 0.004542/0.1307, allocations: 1.731 MB / 338.3 MB, free: 8.02 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)