Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009138/0.009138, allocations: 100.6 kB / 15.73 MB, free: 6.031 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.001671/0.001671, allocations: 192.5 kB / 16.67 MB, free: 5.969 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.719/1.719, allocations: 205.1 MB / 222.6 MB, free: 4.516 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.001276/0.001276, allocations: 57.75 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1247, allocations: 46.62 MB / 373.1 MB, free: 1.355 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004202/0.129, allocations: 1.684 MB / 374.8 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00075/0.1298, allocations: 267.2 kB / 375.1 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.1299, allocations: 0 / 375.1 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.1301, allocations: 23.69 kB / 375.1 MB, free: 15.37 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.382e-05/0.1302, allocations: 19.8 kB / 375.1 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004417/0.1306, allocations: 115.8 kB / 375.2 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003352/0.131, allocations: 263.6 kB / 375.5 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003356/0.1313, allocations: 193.3 kB / 375.7 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.1314, allocations: 91.7 kB / 375.8 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.1316, allocations: 103.5 kB / 375.9 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.268e-05/0.1316, allocations: 24 kB / 375.9 MB, free: 14.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.023e-05/0.1317, allocations: 27.98 kB / 375.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.871e-05/0.1318, allocations: 55.84 kB / 376 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.1319, allocations: 99.52 kB / 376.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003057/0.1322, allocations: 251.1 kB / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1322, allocations: 0 / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1323, allocations: 0 / 376.3 MB, free: 14.15 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.1323, allocations: 0 / 376.3 MB, free: 14.15 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.0006834/0.133, allocations: 490.2 kB / 376.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.133, allocations: 12.03 kB / 376.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.673e-05/0.1331, allocations: 24.66 kB / 376.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003317/0.1334, allocations: 228 kB / 377.1 MB, free: 13.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.41e-05/0.1335, allocations: 24.94 kB / 377.1 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.895e-05/0.1335, allocations: 24.38 kB / 377.1 MB, free: 13.28 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004536/0.134, allocations: 278.5 kB / 377.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.134, allocations: 192 / 377.4 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.631e-05/0.134, allocations: 11.94 kB / 377.4 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/0.134, allocations: 8 kB / 377.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000296/0.1343, allocations: 165.6 kB / 377.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.1355, allocations: 0.971 MB / 378.5 MB, free: 11.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002686/0.1358, allocations: 150.7 kB / 378.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.1359, allocations: 76.92 kB / 378.8 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.1359, allocations: 8 kB / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002/0.1361, allocations: 115.1 kB / 378.9 MB, free: 11.4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.723e-06/0.1361, allocations: 0 / 378.9 MB, free: 11.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004273/0.1366, allocations: 209.3 kB / 379.1 MB, free: 11.19 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.1366, allocations: 63.39 kB / 379.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.1368, allocations: 157.5 kB / 379.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.303e-05/0.1368, allocations: 41.69 kB / 379.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.1369, allocations: 140.5 kB / 379.5 MB, free: 10.76 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.558e-05/0.137, allocations: 51.27 kB / 379.5 MB, free: 10.71 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.604e-05/0.1371, allocations: 85.94 kB / 379.6 MB, free: 10.61 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1372, allocations: 330.8 kB / 379.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001098/0.1373, allocations: 68.62 kB / 380 MB, free: 10.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001574/0.1375, allocations: 145.7 kB / 380.1 MB, free: 10.04 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002345/0.1377, allocations: 188.4 kB / 380.3 MB, free: 9.828 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1378, allocations: 0 / 380.3 MB, free: 9.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003482/0.1381, allocations: 245.5 kB / 380.6 MB, free: 9.582 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.1381, allocations: 13.12 kB / 380.6 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1381, allocations: 4 kB / 380.6 MB, free: 9.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.1382, allocations: 4 kB / 380.6 MB, free: 9.562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.1383, allocations: 31.92 kB / 380.6 MB, free: 9.531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.1383, allocations: 11.92 kB / 380.6 MB, free: 9.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.791e-05/0.1384, allocations: 27.69 kB / 380.7 MB, free: 9.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.927e-05/0.1385, allocations: 16 kB / 380.7 MB, free: 9.477 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.0001871/0.1387, allocations: 152.3 kB / 380.8 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.466e-05/0.1387, allocations: 15.91 kB / 380.8 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004026/0.1391, allocations: 190.3 kB / 381 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.1391, allocations: 4 kB / 381 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.1391, allocations: 0 / 381 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/0.1391, allocations: 7.969 kB / 381 MB, free: 9.098 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008615/0.14, allocations: 0.583 MB / 381.6 MB, free: 8.453 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.14, allocations: 0 / 381.6 MB, free: 8.453 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.466e-05/0.1401, allocations: 19.92 kB / 381.6 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.1401, allocations: 3.938 kB / 381.6 MB, free: 8.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.666e-05/0.1402, allocations: 12 kB / 381.7 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.1402, allocations: 0 / 381.7 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1402, allocations: 0 / 381.7 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003566/0.1405, allocations: 275.6 kB / 381.9 MB, free: 8.133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.114e-05/0.1406, allocations: 88.95 kB / 382 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.352e-05/0.1406, allocations: 19.92 kB / 382 MB, free: 8.008 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.638e-05/0.1407, allocations: 4 kB / 382 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.525e-05/0.1408, allocations: 23.97 kB / 382.1 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.1408, allocations: 8 kB / 382.1 MB, free: 7.973 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.734e-05/0.1409, allocations: 95.27 kB / 382.2 MB, free: 7.879 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1409, allocations: 0 / 382.2 MB, free: 7.879 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003009/0.1412, allocations: 55.75 kB / 382.2 MB, free: 7.824 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,transition1.enableFire,step.active,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.0001726/0.1414, allocations: 115.3 kB / 382.3 MB, free: 7.703 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003757/0.1418, allocations: 196.3 kB / 382.5 MB, free: 7.512 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1418, allocations: 0 / 382.5 MB, free: 7.512 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001303/0.1419, allocations: 79.91 kB / 382.6 MB, free: 7.434 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.1422, allocations: 23.94 kB / 382.6 MB, free: 7.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005985/0.1428, allocations: 331.7 kB / 382.9 MB, free: 7.062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004039/0.1433, allocations: 0.7363 MB / 383.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.823e-05/0.1433, allocations: 21.94 kB / 383.7 MB, free: 6.277 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.674e-05/0.1434, allocations: 23.42 kB / 383.7 MB, free: 6.254 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1434, allocations: 4 kB / 383.7 MB, free: 6.25 MB / 318.1 MB Notification: Performance of Templates: time 0.00553/0.1489, allocations: 1.932 MB / 385.7 MB, free: 4.316 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1)