Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001471/0.001472, allocations: 115 kB / 16.63 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.001588/0.001588, allocations: 186 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.749/1.749, 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.001121/0.001121, allocations: 48.16 kB / 279.5 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1119, allocations: 46.63 MB / 326.1 MB, free: 4.812 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002667/0.1146, allocations: 1.582 MB / 327.7 MB, free: 3.215 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005575/0.1152, allocations: 255.2 kB / 327.9 MB, free: 2.965 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.599e-05/0.1152, allocations: 0 / 327.9 MB, free: 2.965 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.3e-05/0.1154, allocations: 19.81 kB / 328 MB, free: 2.945 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.289e-05/0.1154, allocations: 11.92 kB / 328 MB, free: 2.934 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002892/0.1157, allocations: 95.89 kB / 328.1 MB, free: 2.84 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002503/0.116, allocations: 263.5 kB / 328.3 MB, free: 2.582 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.1162, allocations: 154.4 kB / 328.5 MB, free: 2.426 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.671e-05/0.1163, allocations: 87.69 kB / 328.6 MB, free: 2.34 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.385e-05/0.1164, allocations: 99.59 kB / 328.7 MB, free: 2.242 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.137e-05/0.1164, allocations: 24 kB / 328.7 MB, free: 2.219 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.635e-05/0.1165, allocations: 31.98 kB / 328.7 MB, free: 2.188 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.723e-05/0.1165, allocations: 55.78 kB / 328.8 MB, free: 2.133 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.122e-05/0.1166, allocations: 95.52 kB / 328.9 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.1168, allocations: 223.3 kB / 329.1 MB, free: 1.82 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1168, allocations: 4 kB / 329.1 MB, free: 1.816 MB / 270.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.1168, allocations: 0 / 329.1 MB, free: 1.816 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.1169, allocations: 0 / 329.1 MB, free: 1.816 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005378/0.1174, allocations: 490.7 kB / 329.6 MB, free: 1.281 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.694e-05/0.1174, allocations: 12.03 kB / 329.6 MB, free: 1.27 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.514e-05/0.1175, allocations: 24.69 kB / 329.6 MB, free: 1.246 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002043/0.1177, allocations: 224 kB / 329.8 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.1177, allocations: 24.94 kB / 329.8 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.41e-05/0.1178, allocations: 24.38 kB / 329.9 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003562/0.1181, allocations: 248 kB / 330.1 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.1182, allocations: 192 / 330.1 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.1e-05/0.1182, allocations: 11.94 kB / 330.1 MB, free: 0.6758 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.1182, allocations: 8 kB / 330.1 MB, free: 0.668 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002716/0.1185, allocations: 157.7 kB / 330.3 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009758/0.1195, allocations: 0.7129 MB / 331 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002551/0.1197, allocations: 162.8 kB / 331.2 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.1199, allocations: 84.77 kB / 331.2 MB, free: 15.49 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.1199, allocations: 7.938 kB / 331.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002413/0.1202, allocations: 123.3 kB / 331.4 MB, free: 15.35 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.442e-06/0.1202, allocations: 0 / 331.4 MB, free: 15.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003686/0.1205, allocations: 213.3 kB / 331.6 MB, free: 15.14 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.492e-05/0.1206, allocations: 63.39 kB / 331.6 MB, free: 15.06 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.1207, allocations: 137.9 kB / 331.8 MB, free: 14.92 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/0.1207, allocations: 45.69 kB / 331.8 MB, free: 14.87 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.753e-05/0.1208, allocations: 128.6 kB / 331.9 MB, free: 14.74 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.474e-05/0.1209, allocations: 59.14 kB / 332 MB, free: 14.68 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.21e-05/0.121, allocations: 82 kB / 332.1 MB, free: 14.59 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.1211, allocations: 326.8 kB / 332.4 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001032/0.1212, allocations: 64.62 kB / 332.5 MB, free: 14.2 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/0.1214, allocations: 124.1 kB / 332.6 MB, free: 14.06 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002155/0.1216, allocations: 178.6 kB / 332.8 MB, free: 13.86 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1216, allocations: 0 / 332.8 MB, free: 13.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003274/0.1219, allocations: 241.2 kB / 333 MB, free: 13.62 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.1219, allocations: 8 kB / 333 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.286e-06/0.122, allocations: 0 / 333 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.122, allocations: 4 kB / 333 MB, free: 13.61 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.1221, allocations: 39.84 kB / 333 MB, free: 13.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.1221, allocations: 4 kB / 333 MB, free: 13.56 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.178e-05/0.1222, allocations: 23.78 kB / 333.1 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.1222, allocations: 8.219 kB / 333.1 MB, free: 13.53 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001498/0.1224, allocations: 161.8 kB / 333.2 MB, free: 13.36 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.656e-05/0.1224, allocations: 19.73 kB / 333.3 MB, free: 13.34 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003166/0.1228, allocations: 194.4 kB / 333.4 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1228, allocations: 7.938 kB / 333.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.1228, allocations: 0 / 333.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.1228, allocations: 0 / 333.5 MB, free: 13.14 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007003/0.1235, allocations: 0.5763 MB / 334 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1235, allocations: 3.938 kB / 334 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.617e-05/0.1236, allocations: 19.98 kB / 334.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.1236, allocations: 4 kB / 334.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.1236, allocations: 0 / 334.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.1236, allocations: 3.938 kB / 334.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1236, allocations: 3.938 kB / 334.1 MB, free: 12.47 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/0.1239, allocations: 287.2 kB / 334.3 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.078e-05/0.124, allocations: 88.95 kB / 334.4 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.124, allocations: 4 kB / 334.4 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.297e-05/0.1241, allocations: 11.98 kB / 334.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.056e-05/0.1242, allocations: 23.91 kB / 334.5 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.1242, allocations: 8 kB / 334.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.248e-05/0.1243, allocations: 95.77 kB / 334.6 MB, free: 11.93 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1243, allocations: 0 / 334.6 MB, free: 11.93 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002822/0.1246, allocations: 47.84 kB / 334.6 MB, free: 11.88 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001465/0.1247, allocations: 115.1 kB / 334.7 MB, free: 11.76 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003368/0.1251, allocations: 191.7 kB / 334.9 MB, free: 11.57 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.172e-06/0.1251, allocations: 0 / 334.9 MB, free: 11.57 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001248/0.1252, allocations: 88.28 kB / 335 MB, free: 11.48 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.1255, allocations: 19.98 kB / 335 MB, free: 11.46 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005487/0.126, allocations: 400.7 kB / 335.4 MB, free: 11.05 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.1263, allocations: 0.7323 MB / 336.2 MB, free: 10.29 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.976e-05/0.1264, allocations: 25.94 kB / 336.2 MB, free: 10.27 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.207e-05/0.1265, allocations: 23.44 kB / 336.2 MB, free: 10.25 MB / 286.1 MB Notification: Performance of SimCode: time 3e-07/0.1265, allocations: 0 / 336.2 MB, free: 10.25 MB / 286.1 MB Notification: Performance of Templates: time 0.004709/0.1312, allocations: 1.835 MB / 338 MB, free: 8.422 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1)