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.001757/0.001757, allocations: 108 kB / 16.62 MB, free: 6.812 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.00188/0.001881, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.69/1.69, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001194/0.001194, allocations: 43.94 kB / 279.5 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1134, allocations: 46.63 MB / 326.1 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003143/0.1166, allocations: 1.759 MB / 327.9 MB, free: 3.027 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007174/0.1173, allocations: 271.1 kB / 328.1 MB, free: 2.762 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.1174, allocations: 4 kB / 328.1 MB, free: 2.758 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.1176, allocations: 19.81 kB / 328.2 MB, free: 2.738 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.403e-05/0.1176, allocations: 7.922 kB / 328.2 MB, free: 2.73 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003705/0.118, allocations: 107.8 kB / 328.3 MB, free: 2.625 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003197/0.1184, allocations: 271.5 kB / 328.5 MB, free: 2.359 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003035/0.1187, allocations: 194.9 kB / 328.7 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.445e-05/0.1188, allocations: 91.69 kB / 328.8 MB, free: 2.074 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.1189, allocations: 95.55 kB / 328.9 MB, free: 1.98 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.69e-05/0.1189, allocations: 24 kB / 328.9 MB, free: 1.957 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.773e-05/0.119, allocations: 31.98 kB / 329 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.764e-05/0.1191, allocations: 59.83 kB / 329 MB, free: 1.867 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.815e-05/0.1192, allocations: 99.53 kB / 329.1 MB, free: 1.77 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.1195, allocations: 243.4 kB / 329.4 MB, free: 1.531 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.1195, allocations: 4 kB / 329.4 MB, free: 1.527 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1195, allocations: 0 / 329.4 MB, free: 1.527 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.1195, allocations: 4 kB / 329.4 MB, free: 1.523 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.0006268/0.1201, allocations: 486.1 kB / 329.8 MB, free: 0.9961 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.1202, allocations: 8.031 kB / 329.9 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.039e-05/0.1202, allocations: 28.64 kB / 329.9 MB, free: 0.9609 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002225/0.1205, allocations: 231.9 kB / 330.1 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.297e-05/0.1205, allocations: 20.94 kB / 330.1 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.675e-05/0.1205, allocations: 32.36 kB / 330.2 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004233/0.121, allocations: 274.5 kB / 330.4 MB, free: 364 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.121, allocations: 192 / 330.4 MB, free: 364 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.711e-05/0.121, allocations: 11.94 kB / 330.4 MB, free: 352 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.121, allocations: 8 kB / 330.5 MB, free: 344 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002799/0.1213, allocations: 165.6 kB / 330.6 MB, free: 180 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.1224, allocations: 0.9712 MB / 331.6 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002654/0.1227, allocations: 150.7 kB / 331.7 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.1228, allocations: 76.92 kB / 331.8 MB, free: 14.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.1228, allocations: 4 kB / 331.8 MB, free: 14.9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002596/0.1231, allocations: 119.2 kB / 331.9 MB, free: 14.77 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.703e-06/0.1231, allocations: 0 / 331.9 MB, free: 14.77 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004099/0.1235, allocations: 205.3 kB / 332.1 MB, free: 14.56 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001333/0.1237, allocations: 63.39 kB / 332.2 MB, free: 14.49 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.1238, allocations: 157.8 kB / 332.3 MB, free: 14.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.699e-05/0.1238, allocations: 33.7 kB / 332.4 MB, free: 14.29 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.405e-05/0.1239, allocations: 152.3 kB / 332.5 MB, free: 14.13 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.475e-05/0.124, allocations: 55.34 kB / 332.6 MB, free: 14.08 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/0.1241, allocations: 81.92 kB / 332.7 MB, free: 13.99 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.1242, allocations: 334.8 kB / 333 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.1244, allocations: 60.62 kB / 333 MB, free: 13.6 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.1245, allocations: 137.8 kB / 333.2 MB, free: 13.43 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002405/0.1248, allocations: 204.2 kB / 333.4 MB, free: 13.2 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1248, allocations: 0 / 333.4 MB, free: 13.2 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003405/0.1251, allocations: 241.2 kB / 333.6 MB, free: 12.96 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.1252, allocations: 8 kB / 333.6 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.1252, allocations: 3.938 kB / 333.6 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1252, allocations: 12.27 kB / 333.6 MB, free: 12.94 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.1253, allocations: 31.92 kB / 333.7 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.1254, allocations: 11.94 kB / 333.7 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.634e-05/0.1255, allocations: 27.78 kB / 333.7 MB, free: 12.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.56e-05/0.1255, allocations: 8 kB / 333.7 MB, free: 12.86 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.0001414/0.1256, allocations: 164.3 kB / 333.9 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.751e-05/0.1257, allocations: 11.81 kB / 333.9 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003206/0.126, allocations: 198.7 kB / 334.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.126, allocations: 0 / 334.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.126, allocations: 4 kB / 334.1 MB, free: 12.47 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.126, allocations: 0 / 334.1 MB, free: 12.47 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00072/0.1268, allocations: 0.5948 MB / 334.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1268, allocations: 0 / 334.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.07e-05/0.1268, allocations: 15.92 kB / 334.7 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.1269, allocations: 7.938 kB / 334.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.1269, allocations: 8 kB / 334.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1269, allocations: 0 / 334.7 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1269, allocations: 4 kB / 334.7 MB, free: 11.78 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003062/0.1272, allocations: 271.2 kB / 335 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.281e-05/0.1273, allocations: 92.89 kB / 335.1 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.057e-05/0.1273, allocations: 8 kB / 335.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.094e-05/0.1274, allocations: 4 kB / 335.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.113e-05/0.1275, allocations: 19.97 kB / 335.1 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.1275, allocations: 12 kB / 335.1 MB, free: 11.35 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.393e-05/0.1276, allocations: 100.5 kB / 335.2 MB, free: 11.25 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1276, allocations: 0 / 335.2 MB, free: 11.25 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003162/0.1279, allocations: 55.75 kB / 335.3 MB, free: 11.2 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.0001827/0.1281, allocations: 107.2 kB / 335.4 MB, free: 11.08 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004102/0.1285, allocations: 196.1 kB / 335.6 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1285, allocations: 4.125 kB / 335.6 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.1287, allocations: 91.78 kB / 335.7 MB, free: 10.8 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.129, allocations: 20 kB / 335.7 MB, free: 10.78 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006763/0.1297, allocations: 408.7 kB / 336.1 MB, free: 10.35 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000348/0.13, allocations: 0.7439 MB / 336.8 MB, free: 9.578 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.739e-05/0.1301, allocations: 25.88 kB / 336.8 MB, free: 9.551 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.123e-05/0.1302, allocations: 23.44 kB / 336.9 MB, free: 9.527 MB / 286.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1302, allocations: 4 kB / 336.9 MB, free: 9.523 MB / 286.1 MB Notification: Performance of Templates: time 0.004835/0.1351, allocations: 1.828 MB / 338.7 MB, free: 7.703 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)