Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001157/0.001157, allocations: 90.48 kB / 16.65 MB, free: 6.586 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.001335/0.001335, allocations: 183.7 kB / 17.56 MB, free: 6.203 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.93/1.93, allocations: 205.4 MB / 223.8 MB, free: 13.06 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.0005597/0.0005597, allocations: 8 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1431, allocations: 47.58 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003396/0.1466, allocations: 1.401 MB / 329.7 MB, free: 2.344 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.1481, allocations: 267.2 kB / 330 MB, free: 2.082 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002125/0.1483, allocations: 7.938 kB / 330 MB, free: 2.074 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.1485, allocations: 19.86 kB / 330 MB, free: 2.055 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.1487, allocations: 15.86 kB / 330 MB, free: 2.039 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006141/0.1493, allocations: 99.91 kB / 330.1 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005019/0.1498, allocations: 247.5 kB / 330.4 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004649/0.1503, allocations: 171.3 kB / 330.5 MB, free: 1.523 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.1504, allocations: 67.7 kB / 330.6 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002807/0.1507, allocations: 71.62 kB / 330.7 MB, free: 1.387 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.649e-05/0.1508, allocations: 15.94 kB / 330.7 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.1509, allocations: 19.98 kB / 330.7 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.776e-05/0.151, allocations: 43.83 kB / 330.7 MB, free: 1.309 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001942/0.1512, allocations: 117.1 kB / 330.9 MB, free: 1.188 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003958/0.1517, allocations: 215.5 kB / 331.1 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1517, allocations: 0 / 331.1 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1517, allocations: 0 / 331.1 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.1517, allocations: 4 kB / 331.1 MB, free: 0.9727 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008857/0.1526, allocations: 442.2 kB / 331.5 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.1527, allocations: 11.97 kB / 331.5 MB, free: 492 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.099e-05/0.1528, allocations: 24.75 kB / 331.5 MB, free: 468 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003438/0.1531, allocations: 228 kB / 331.8 MB, free: 200 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.03e-05/0.1532, allocations: 20.94 kB / 331.8 MB, free: 180 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.774e-05/0.1533, allocations: 28.31 kB / 331.8 MB, free: 152 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007311/0.154, allocations: 270.6 kB / 332.1 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.1541, allocations: 3.938 kB / 332.1 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.059e-05/0.1541, allocations: 12 kB / 332.1 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.1541, allocations: 8 kB / 332.1 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005425/0.1547, allocations: 165.6 kB / 332.3 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.1565, allocations: 0.9711 MB / 333.2 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003665/0.1569, allocations: 158.7 kB / 333.4 MB, free: 14.47 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.1571, allocations: 76.83 kB / 333.5 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.669e-05/0.1572, allocations: 0 / 333.5 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003027/0.1575, allocations: 115.3 kB / 333.6 MB, free: 14.27 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.944e-06/0.1575, allocations: 0 / 333.6 MB, free: 14.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005768/0.1581, allocations: 213.9 kB / 333.8 MB, free: 14.05 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.1581, allocations: 59.41 kB / 333.8 MB, free: 13.98 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/0.1584, allocations: 161.5 kB / 334 MB, free: 13.82 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.293e-05/0.1584, allocations: 37.7 kB / 334 MB, free: 13.78 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001915/0.1586, allocations: 144.5 kB / 334.2 MB, free: 13.63 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.023e-05/0.1587, allocations: 51.27 kB / 334.2 MB, free: 13.58 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.466e-05/0.1588, allocations: 53.69 kB / 334.3 MB, free: 13.52 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002589/0.1591, allocations: 330.8 kB / 334.6 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.1592, allocations: 60.62 kB / 334.7 MB, free: 13.13 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003204/0.1596, allocations: 165.6 kB / 334.8 MB, free: 12.94 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003487/0.1599, allocations: 192.3 kB / 335 MB, free: 12.72 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1599, allocations: 0 / 335 MB, free: 12.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005071/0.1604, allocations: 245.2 kB / 335.2 MB, free: 12.47 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.1605, allocations: 8 kB / 335.3 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.1605, allocations: 4 kB / 335.3 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.1605, allocations: 4 kB / 335.3 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.1607, allocations: 35.84 kB / 335.3 MB, free: 12.42 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.697e-05/0.1607, allocations: 7.984 kB / 335.3 MB, free: 12.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001436/0.1609, allocations: 31.97 kB / 335.3 MB, free: 12.38 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.323e-05/0.1609, allocations: 16 kB / 335.3 MB, free: 12.37 MB / 286.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.condition,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.0002486/0.1612, allocations: 160.3 kB / 335.5 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.1612, allocations: 11.91 kB / 335.5 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005067/0.1617, allocations: 190.7 kB / 335.7 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.1618, allocations: 4 kB / 335.7 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.1618, allocations: 3.984 kB / 335.7 MB, free: 11.99 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.1618, allocations: 4 kB / 335.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.1629, allocations: 0.6027 MB / 336.3 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.163, allocations: 0 / 336.3 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.627e-05/0.1631, allocations: 11.94 kB / 336.3 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1631, allocations: 4 kB / 336.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.1631, allocations: 7.984 kB / 336.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.1631, allocations: 0 / 336.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1631, allocations: 4 kB / 336.3 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003962/0.1635, allocations: 275.2 kB / 336.6 MB, free: 11.01 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.659e-05/0.1636, allocations: 96.8 kB / 336.7 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/0.1637, allocations: 8 kB / 336.7 MB, free: 10.89 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.513e-05/0.1638, allocations: 4 kB / 336.7 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.095e-05/0.1639, allocations: 19.97 kB / 336.7 MB, free: 10.86 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.1639, allocations: 8 kB / 336.7 MB, free: 10.86 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.186e-05/0.1639, allocations: 103.2 kB / 336.8 MB, free: 10.75 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.164, allocations: 4 kB / 336.9 MB, free: 10.75 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003733/0.1643, allocations: 51.84 kB / 336.9 MB, free: 10.7 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 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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.0001843/0.1645, allocations: 107.1 kB / 337 MB, free: 10.59 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005064/0.165, allocations: 183.7 kB / 337.2 MB, free: 10.41 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1651, allocations: 3.938 kB / 337.2 MB, free: 10.4 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001883/0.1653, allocations: 80.47 kB / 337.3 MB, free: 10.32 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004468/0.1657, allocations: 35.86 kB / 337.3 MB, free: 10.29 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.1668, allocations: 403.8 kB / 337.7 MB, free: 9.867 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005323/0.1673, allocations: 0.7404 MB / 338.4 MB, free: 9.102 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.1675, allocations: 21.95 kB / 338.5 MB, free: 9.082 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.584e-05/0.1676, allocations: 23.42 kB / 338.5 MB, free: 9.059 MB / 286.1 MB Notification: Performance of SimCode: time 9.72e-07/0.1676, allocations: 0 / 338.5 MB, free: 9.059 MB / 286.1 MB Notification: Performance of Templates: time 0.00755/0.1751, allocations: 1.706 MB / 340.2 MB, free: 7.355 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)