Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.01086/0.01086, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.002051/0.002051, allocations: 186.5 kB / 16.67 MB, free: 5.977 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.674/1.674, allocations: 205.1 MB / 222.6 MB, free: 4.398 MB / 174.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.001182/0.001182, allocations: 53.92 kB / 326.5 MB, free: 14.47 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1233, allocations: 46.63 MB / 373.1 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003873/0.1272, allocations: 1.652 MB / 374.8 MB, free: 15.65 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009606/0.1282, allocations: 259.2 kB / 375.1 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001378/0.1283, allocations: 4 kB / 375.1 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.1286, allocations: 23.69 kB / 375.1 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.596e-05/0.1286, allocations: 23.78 kB / 375.1 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005902/0.1292, allocations: 119.8 kB / 375.2 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004488/0.1297, allocations: 263.6 kB / 375.5 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004682/0.1302, allocations: 202.8 kB / 375.7 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.1304, allocations: 87.7 kB / 375.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.1306, allocations: 103.5 kB / 375.9 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.18e-05/0.1306, allocations: 24 kB / 375.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.1307, allocations: 32 kB / 375.9 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.826e-05/0.1308, allocations: 59.81 kB / 376 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.131, allocations: 107.5 kB / 376.1 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004184/0.1314, allocations: 251.2 kB / 376.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1314, allocations: 3.938 kB / 376.3 MB, free: 14.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.237e-06/0.1315, allocations: 4 kB / 376.3 MB, free: 14.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.485e-06/0.1315, allocations: 0 / 376.3 MB, free: 14.11 MB / 318.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.000982/0.1325, allocations: 485.9 kB / 376.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.825e-05/0.1325, allocations: 12.03 kB / 376.8 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.1327, allocations: 20.75 kB / 376.8 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004762/0.1331, allocations: 235.9 kB / 377.1 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.484e-05/0.1332, allocations: 24.94 kB / 377.1 MB, free: 13.26 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.82e-05/0.1333, allocations: 28.38 kB / 377.1 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006358/0.1339, allocations: 274.5 kB / 377.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.1339, allocations: 192 / 377.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.361e-05/0.134, allocations: 15.94 kB / 377.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.134, allocations: 4 kB / 377.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004213/0.1345, allocations: 169.6 kB / 377.6 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001486/0.1359, allocations: 0.9633 MB / 378.5 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003682/0.1363, allocations: 158.6 kB / 378.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.1365, allocations: 76.92 kB / 378.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.1365, allocations: 0 / 378.8 MB, free: 11.49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002499/0.1368, allocations: 123.1 kB / 378.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.833e-06/0.1368, allocations: 0 / 378.9 MB, free: 11.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006283/0.1375, allocations: 217.2 kB / 379.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.743e-05/0.1375, allocations: 59.39 kB / 379.2 MB, free: 11.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.1377, allocations: 157.8 kB / 379.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.216e-05/0.1378, allocations: 37.7 kB / 379.4 MB, free: 10.86 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.1379, allocations: 140.5 kB / 379.5 MB, free: 10.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.509e-05/0.138, allocations: 59.19 kB / 379.5 MB, free: 10.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/0.1382, allocations: 81.95 kB / 379.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.1384, allocations: 330.8 kB / 379.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.1385, allocations: 64.62 kB / 380 MB, free: 10.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002404/0.1388, allocations: 141.8 kB / 380.2 MB, free: 10 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000368/0.1392, allocations: 184.4 kB / 380.3 MB, free: 9.793 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1392, allocations: 4 kB / 380.3 MB, free: 9.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005158/0.1397, allocations: 253.2 kB / 380.6 MB, free: 9.535 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.1397, allocations: 4 kB / 380.6 MB, free: 9.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.1398, allocations: 4 kB / 380.6 MB, free: 9.527 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.393e-05/0.1398, allocations: 4 kB / 380.6 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.14, allocations: 35.91 kB / 380.6 MB, free: 9.488 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.14, allocations: 4.281 kB / 380.6 MB, free: 9.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001383/0.1402, allocations: 27.75 kB / 380.7 MB, free: 9.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.55e-05/0.1402, allocations: 20 kB / 380.7 MB, free: 9.438 MB / 318.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.localCondition,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.0002019/0.1404, allocations: 160.2 kB / 380.8 MB, free: 9.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.149e-05/0.1405, allocations: 15.91 kB / 380.9 MB, free: 9.254 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004347/0.1409, allocations: 194.5 kB / 381 MB, free: 9.055 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.1409, allocations: 4 kB / 381 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.1409, allocations: 3.984 kB / 381 MB, free: 9.047 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.141, allocations: 4 kB / 381.1 MB, free: 9.043 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009362/0.1419, allocations: 0.5831 MB / 381.6 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.1419, allocations: 0 / 381.6 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.438e-05/0.142, allocations: 19.88 kB / 381.7 MB, free: 8.379 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.142, allocations: 7.938 kB / 381.7 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.1421, allocations: 3.984 kB / 381.7 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1421, allocations: 0 / 381.7 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1421, allocations: 4 kB / 381.7 MB, free: 8.363 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004002/0.1425, allocations: 271.7 kB / 381.9 MB, free: 8.082 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.225e-05/0.1426, allocations: 100.8 kB / 382 MB, free: 7.965 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.813e-05/0.1426, allocations: 3.938 kB / 382 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.1428, allocations: 8 kB / 382 MB, free: 7.953 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.901e-05/0.1429, allocations: 19.97 kB / 382.1 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.125e-05/0.1429, allocations: 4 kB / 382.1 MB, free: 7.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.316e-05/0.143, allocations: 103.2 kB / 382.2 MB, free: 7.828 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.143, allocations: 4 kB / 382.2 MB, free: 7.824 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004846/0.1435, allocations: 51.83 kB / 382.2 MB, free: 7.773 MB / 318.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.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,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.000215/0.1437, allocations: 115.4 kB / 382.3 MB, free: 7.652 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004755/0.1442, allocations: 187.8 kB / 382.5 MB, free: 7.469 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.1442, allocations: 0 / 382.5 MB, free: 7.469 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.1444, allocations: 79.91 kB / 382.6 MB, free: 7.391 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004349/0.1449, allocations: 32.48 kB / 382.6 MB, free: 7.359 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008698/0.1457, allocations: 335.7 kB / 383 MB, free: 7.008 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004064/0.1462, allocations: 0.7363 MB / 383.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001124/0.1463, allocations: 25.94 kB / 383.7 MB, free: 6.219 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.324e-05/0.1464, allocations: 23.44 kB / 383.7 MB, free: 6.195 MB / 318.1 MB Notification: Performance of SimCode: time 7.42e-07/0.1464, allocations: 0 / 383.7 MB, free: 6.195 MB / 318.1 MB Notification: Performance of Templates: time 0.00758/0.154, allocations: 1.893 MB / 385.6 MB, free: 4.301 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)