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.001299/0.001299, allocations: 101.3 kB / 16.5 MB, free: 6.645 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.001217/0.001217, allocations: 195 kB / 17.42 MB, free: 6.066 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.703/1.703, allocations: 205.1 MB / 223.3 MB, free: 12.46 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.001165/0.001165, allocations: 48.25 kB / 279.3 MB, free: 3.609 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1142, allocations: 46.64 MB / 325.9 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002911/0.1172, allocations: 1.566 MB / 327.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007453/0.118, allocations: 255.2 kB / 327.8 MB, free: 3.07 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.56e-05/0.1181, allocations: 4 kB / 327.8 MB, free: 3.066 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.1183, allocations: 23.8 kB / 327.8 MB, free: 3.043 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.089e-05/0.1183, allocations: 3.938 kB / 327.8 MB, free: 3.039 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004052/0.1187, allocations: 99.89 kB / 327.9 MB, free: 2.941 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002815/0.119, allocations: 247.5 kB / 328.1 MB, free: 2.699 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002593/0.1193, allocations: 150.5 kB / 328.3 MB, free: 2.547 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.202e-05/0.1194, allocations: 79.72 kB / 328.4 MB, free: 2.469 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.1195, allocations: 87.59 kB / 328.4 MB, free: 2.383 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.261e-05/0.1196, allocations: 16 kB / 328.5 MB, free: 2.367 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.451e-05/0.1197, allocations: 27.98 kB / 328.5 MB, free: 2.34 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.805e-05/0.1197, allocations: 43.84 kB / 328.5 MB, free: 2.297 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.187e-05/0.1198, allocations: 91.45 kB / 328.6 MB, free: 2.207 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002336/0.1201, allocations: 211.3 kB / 328.8 MB, free: 2 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1201, allocations: 0 / 328.8 MB, free: 2 MB / 270.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1201, allocations: 0 / 328.8 MB, free: 2 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1201, allocations: 0 / 328.8 MB, free: 2 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.0007038/0.1208, allocations: 494.7 kB / 329.3 MB, free: 1.465 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/0.1208, allocations: 8.031 kB / 329.3 MB, free: 1.457 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.256e-05/0.1209, allocations: 24.75 kB / 329.3 MB, free: 1.434 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002419/0.1212, allocations: 224 kB / 329.6 MB, free: 1.176 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.1212, allocations: 20.94 kB / 329.6 MB, free: 1.156 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.853e-05/0.1212, allocations: 24.38 kB / 329.6 MB, free: 1.133 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000447/0.1217, allocations: 248 kB / 329.8 MB, free: 0.875 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.1217, allocations: 192 / 329.8 MB, free: 0.875 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.756e-05/0.1218, allocations: 11.94 kB / 329.9 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1218, allocations: 4 kB / 329.9 MB, free: 0.8594 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003087/0.1221, allocations: 169.6 kB / 330 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.1231, allocations: 0.6973 MB / 330.7 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.1234, allocations: 174.8 kB / 330.9 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.1236, allocations: 80.83 kB / 331 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/0.1236, allocations: 0 / 331 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002804/0.1239, allocations: 127.2 kB / 331.1 MB, free: 15.54 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.1239, allocations: 4 kB / 331.1 MB, free: 15.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004529/0.1244, allocations: 213.3 kB / 331.3 MB, free: 15.32 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.1244, allocations: 63.39 kB / 331.4 MB, free: 15.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.1245, allocations: 141.9 kB / 331.5 MB, free: 15.1 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.195e-05/0.1246, allocations: 41.69 kB / 331.6 MB, free: 15.05 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.1247, allocations: 124.6 kB / 331.7 MB, free: 14.93 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.752e-05/0.1248, allocations: 59.2 kB / 331.7 MB, free: 14.87 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.917e-05/0.1249, allocations: 74.02 kB / 331.8 MB, free: 14.79 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.1251, allocations: 338.8 kB / 332.1 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.1252, allocations: 60.62 kB / 332.2 MB, free: 14.39 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.1254, allocations: 124.1 kB / 332.3 MB, free: 14.25 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002438/0.1256, allocations: 178.6 kB / 332.5 MB, free: 14.05 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1256, allocations: 0 / 332.5 MB, free: 14.05 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003716/0.126, allocations: 249.2 kB / 332.7 MB, free: 13.8 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.126, allocations: 4 kB / 332.7 MB, free: 13.8 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.126, allocations: 4 kB / 332.7 MB, free: 13.79 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.1261, allocations: 0 / 332.7 MB, free: 13.79 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.1262, allocations: 35.86 kB / 332.8 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.1262, allocations: 7.984 kB / 332.8 MB, free: 13.75 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.329e-05/0.1263, allocations: 23.78 kB / 332.8 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.1264, allocations: 12 kB / 332.8 MB, free: 13.71 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.0001493/0.1265, allocations: 158 kB / 333 MB, free: 13.55 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.1265, allocations: 15.75 kB / 333 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003579/0.1269, allocations: 194.4 kB / 333.2 MB, free: 13.34 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.1269, allocations: 7.984 kB / 333.2 MB, free: 13.33 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.1269, allocations: 0 / 333.2 MB, free: 13.33 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.1269, allocations: 7.875 kB / 333.2 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007441/0.1277, allocations: 0.5724 MB / 333.8 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1277, allocations: 3.938 kB / 333.8 MB, free: 12.69 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.949e-05/0.1278, allocations: 20 kB / 333.8 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1278, allocations: 3.984 kB / 333.8 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.1278, allocations: 0 / 333.8 MB, free: 12.67 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.1278, allocations: 4 kB / 333.8 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.1278, allocations: 3.938 kB / 333.8 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003182/0.1282, allocations: 279.2 kB / 334.1 MB, free: 12.37 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.848e-05/0.1282, allocations: 92.95 kB / 334.2 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.636e-05/0.1283, allocations: 8 kB / 334.2 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.775e-05/0.1284, allocations: 11.98 kB / 334.2 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.498e-05/0.1285, allocations: 23.91 kB / 334.2 MB, free: 12.22 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.1285, allocations: 4 kB / 334.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.874e-05/0.1286, allocations: 95.77 kB / 334.3 MB, free: 12.12 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1286, allocations: 0 / 334.3 MB, free: 12.12 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000299/0.1289, allocations: 51.84 kB / 334.4 MB, free: 12.07 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.0001797/0.1291, allocations: 115.1 kB / 334.5 MB, free: 11.95 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003265/0.1294, allocations: 183.7 kB / 334.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1294, allocations: 0 / 334.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001377/0.1295, allocations: 80.36 kB / 334.7 MB, free: 11.69 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.1298, allocations: 19.98 kB / 334.7 MB, free: 11.67 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007077/0.1306, allocations: 398.3 kB / 335.1 MB, free: 11.25 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003252/0.1309, allocations: 0.7365 MB / 335.9 MB, free: 10.49 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.085e-05/0.131, allocations: 29.95 kB / 335.9 MB, free: 10.46 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.79e-05/0.131, allocations: 23.42 kB / 335.9 MB, free: 10.44 MB / 286.1 MB Notification: Performance of SimCode: time 1.172e-06/0.1311, allocations: 0 / 335.9 MB, free: 10.44 MB / 286.1 MB Notification: Performance of Templates: time 0.004675/0.1357, allocations: 1.743 MB / 337.7 MB, free: 8.707 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)