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.001851/0.001851, allocations: 106.3 kB / 16.92 MB, free: 6.109 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.001805/0.001806, allocations: 191.3 kB / 17.85 MB, free: 5.277 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.754/1.754, allocations: 205.1 MB / 223.7 MB, free: 12.26 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.001193/0.001193, allocations: 44.36 kB / 280 MB, free: 3.199 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1208, allocations: 46.64 MB / 326.6 MB, free: 4.484 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003684/0.1245, allocations: 1.47 MB / 328.1 MB, free: 2.996 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006441/0.1252, allocations: 251.2 kB / 328.3 MB, free: 2.75 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.1253, allocations: 0 / 328.3 MB, free: 2.75 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.1255, allocations: 27.69 kB / 328.4 MB, free: 2.723 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.092e-05/0.1255, allocations: 19.8 kB / 328.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004214/0.126, allocations: 107.8 kB / 328.5 MB, free: 2.598 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003143/0.1263, allocations: 259.5 kB / 328.7 MB, free: 2.344 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003179/0.1266, allocations: 158.4 kB / 328.9 MB, free: 2.184 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.1267, allocations: 95.69 kB / 329 MB, free: 2.09 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.1269, allocations: 95.59 kB / 329.1 MB, free: 1.996 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.725e-05/0.1269, allocations: 24 kB / 329.1 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.543e-05/0.127, allocations: 27.98 kB / 329.1 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.576e-05/0.1271, allocations: 51.84 kB / 329.2 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.1272, allocations: 103.5 kB / 329.3 MB, free: 1.793 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000305/0.1275, allocations: 227.3 kB / 329.5 MB, free: 1.57 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1275, allocations: 0 / 329.5 MB, free: 1.57 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1275, allocations: 0 / 329.5 MB, free: 1.57 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.1276, allocations: 0 / 329.5 MB, free: 1.57 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.0008135/0.1284, allocations: 494.7 kB / 330 MB, free: 1.031 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.1284, allocations: 8.031 kB / 330 MB, free: 1.023 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.395e-05/0.1285, allocations: 20.75 kB / 330 MB, free: 1.004 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003103/0.1288, allocations: 228 kB / 330.2 MB, free: 0.7422 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.288e-05/0.1289, allocations: 20.94 kB / 330.3 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.1289, allocations: 24.38 kB / 330.3 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004375/0.1294, allocations: 244 kB / 330.5 MB, free: 464 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.1294, allocations: 192 / 330.5 MB, free: 464 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.1294, allocations: 15.94 kB / 330.5 MB, free: 448 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.1294, allocations: 8 kB / 330.5 MB, free: 440 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002984/0.1298, allocations: 157.7 kB / 330.7 MB, free: 284 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.1309, allocations: 0.709 MB / 331.4 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002994/0.1312, allocations: 162.8 kB / 331.6 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.1314, allocations: 80.83 kB / 331.6 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.1314, allocations: 4 kB / 331.6 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002728/0.1317, allocations: 127.2 kB / 331.8 MB, free: 15.12 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 2.024e-06/0.1317, allocations: 0 / 331.8 MB, free: 15.12 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004359/0.1321, allocations: 213.9 kB / 332 MB, free: 14.91 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.798e-05/0.1322, allocations: 55.41 kB / 332 MB, free: 14.84 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.1323, allocations: 145.9 kB / 332.2 MB, free: 14.69 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.32e-05/0.1324, allocations: 45.56 kB / 332.2 MB, free: 14.64 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.687e-05/0.1325, allocations: 132.6 kB / 332.3 MB, free: 14.5 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.183e-05/0.1326, allocations: 63.2 kB / 332.4 MB, free: 14.44 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.437e-05/0.1327, allocations: 78 kB / 332.5 MB, free: 14.36 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1328, allocations: 322.8 kB / 332.8 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.1329, allocations: 64.56 kB / 332.9 MB, free: 13.97 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001594/0.1331, allocations: 128.1 kB / 333 MB, free: 13.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002367/0.1333, allocations: 178.6 kB / 333.2 MB, free: 13.62 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/0.1333, allocations: 8 kB / 333.2 MB, free: 13.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003541/0.1337, allocations: 237.2 kB / 333.4 MB, free: 13.38 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.1337, allocations: 4 kB / 333.4 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.1337, allocations: 4 kB / 333.4 MB, free: 13.37 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.1338, allocations: 4 kB / 333.4 MB, free: 13.37 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.1339, allocations: 35.89 kB / 333.4 MB, free: 13.33 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.1339, allocations: 7.938 kB / 333.5 MB, free: 13.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.618e-05/0.134, allocations: 36 kB / 333.5 MB, free: 13.29 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.1341, allocations: 8 kB / 333.5 MB, free: 13.28 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.0001432/0.1342, allocations: 153.8 kB / 333.6 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.546e-05/0.1343, allocations: 19.75 kB / 333.7 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003379/0.1346, allocations: 194.4 kB / 333.9 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1346, allocations: 0 / 333.9 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1346, allocations: 0 / 333.9 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1346, allocations: 0 / 333.9 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007/0.1353, allocations: 0.5724 MB / 334.4 MB, free: 12.28 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1354, allocations: 4 kB / 334.4 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.317e-05/0.1354, allocations: 19.94 kB / 334.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.1354, allocations: 3.984 kB / 334.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.1355, allocations: 0 / 334.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.1355, allocations: 4 kB / 334.5 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1355, allocations: 3.938 kB / 334.5 MB, free: 12.24 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003268/0.1358, allocations: 279.3 kB / 334.7 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.874e-05/0.1359, allocations: 92.86 kB / 334.8 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/0.1359, allocations: 8 kB / 334.8 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.828e-05/0.136, allocations: 11.98 kB / 334.8 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.883e-05/0.1361, allocations: 19.91 kB / 334.9 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.1361, allocations: 12 kB / 334.9 MB, free: 11.79 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.8e-05/0.1362, allocations: 99.7 kB / 335 MB, free: 11.7 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1362, allocations: 0 / 335 MB, free: 11.7 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002891/0.1365, allocations: 55.84 kB / 335 MB, free: 11.64 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.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,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.0001825/0.1367, allocations: 111.4 kB / 335.1 MB, free: 11.52 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004115/0.1371, allocations: 199.7 kB / 335.3 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1371, allocations: 0 / 335.3 MB, free: 11.32 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001542/0.1373, allocations: 92.22 kB / 335.4 MB, free: 11.23 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.1376, allocations: 24.42 kB / 335.4 MB, free: 11.21 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006415/0.1382, allocations: 328.3 kB / 335.8 MB, free: 10.87 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000417/0.1387, allocations: 0.7285 MB / 336.5 MB, free: 10.11 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.039e-05/0.1388, allocations: 25.94 kB / 336.5 MB, free: 10.09 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.32e-05/0.1388, allocations: 27.44 kB / 336.5 MB, free: 10.07 MB / 286.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1388, allocations: 0 / 336.5 MB, free: 10.07 MB / 286.1 MB Notification: Performance of Templates: time 0.006054/0.1449, allocations: 1.868 MB / 338.4 MB, free: 8.207 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)