Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007616/0.007616, allocations: 99.64 kB / 15.73 MB, free: 6.039 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.001583/0.001584, allocations: 192 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.09241/0.09241, allocations: 13.55 MB / 304.1 MB, free: 1.137 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 59.89 kB / 421.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.128, allocations: 52.7 MB / 474.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3): time 0.003174/0.1312, allocations: 1.88 MB / 476.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001451/0.1326, allocations: 0.8412 MB / 477 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.1328, allocations: 11.94 kB / 477 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001145/0.134, allocations: 0.606 MB / 477.6 MB, free: 6.238 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.772e-05/0.1341, allocations: 35.61 kB / 477.7 MB, free: 6.203 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:12183:5-12189:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. Notification: Performance of NFTyping.typeClassSections: time 0.0007306/0.1348, allocations: 247.5 kB / 477.9 MB, free: 5.965 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004874/0.1353, allocations: 467.1 kB / 478.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007062/0.136, allocations: 0.5407 MB / 478.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001766/0.1362, allocations: 163.5 kB / 479.1 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002004/0.1364, allocations: 163.2 kB / 479.2 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.657e-05/0.1365, allocations: 36 kB / 479.2 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.1366, allocations: 55.94 kB / 479.3 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.1367, allocations: 107.7 kB / 479.4 MB, free: 4.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.1369, allocations: 179 kB / 479.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005063/0.1374, allocations: 466.1 kB / 480 MB, free: 3.812 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1374, allocations: 0 / 480 MB, free: 3.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.1374, allocations: 0 / 480 MB, free: 3.812 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.1375, allocations: 0 / 480 MB, free: 3.812 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0009835/0.1384, allocations: 0.6874 MB / 480.7 MB, free: 3.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1385, allocations: 11.89 kB / 480.7 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.885e-05/0.1386, allocations: 52.66 kB / 480.8 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005059/0.1391, allocations: 328.2 kB / 481.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.953e-05/0.1392, allocations: 67.25 kB / 481.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.322e-05/0.1393, allocations: 40.38 kB / 481.2 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007637/0.14, allocations: 475.5 kB / 481.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.1401, allocations: 0 / 481.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.063e-05/0.1401, allocations: 23.94 kB / 481.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/0.1401, allocations: 12 kB / 481.7 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005068/0.1406, allocations: 302.3 kB / 482 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002147/0.1428, allocations: 1.93 MB / 483.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004128/0.1432, allocations: 412.8 kB / 484.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.1434, allocations: 89.28 kB / 484.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007251/0.1441, allocations: 0.7127 MB / 485.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.1444, allocations: 178.7 kB / 485.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.194e-06/0.1444, allocations: 4 kB / 485.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004887/0.1449, allocations: 259.2 kB / 485.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.145, allocations: 170.2 kB / 485.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000243/0.1453, allocations: 250.9 kB / 486 MB, free: 13.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.99e-05/0.1453, allocations: 41.69 kB / 486 MB, free: 13.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.1455, allocations: 204.7 kB / 486.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.953e-05/0.1455, allocations: 59.61 kB / 486.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/0.1457, allocations: 106.1 kB / 486.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1458, allocations: 338.8 kB / 486.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.146, allocations: 72.83 kB / 486.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002488/0.1462, allocations: 223.2 kB / 487 MB, free: 12.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003722/0.1466, allocations: 341.9 kB / 487.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.1466, allocations: 8 kB / 487.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005056/0.1471, allocations: 355.1 kB / 487.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.489e-05/0.1472, allocations: 41.78 kB / 487.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.986e-06/0.1472, allocations: 4 kB / 487.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.1472, allocations: 4 kB / 487.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.1474, allocations: 28.03 kB / 487.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.1474, allocations: 15.88 kB / 487.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001645/0.1475, allocations: 31.78 kB / 487.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.1476, allocations: 23.98 kB / 487.8 MB, free: 11.3 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 47 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.onDelay.u,step3.oldActive,$PRE.step3.oldActive,step2.oldActive,$PRE.step2.oldActive,initialStep.oldActive,$PRE.initialStep.oldActive,onDelay.t_next,$PRE.onDelay.t_next,onDelay.delaySignal,$PRE.onDelay.delaySignal,onDelay.u,onDelay.y,T3.t_start,$PRE.T3.t_start,T3.enableFire,T3.fire,step3.outport_fire,step3.inport_fire,step3.newActive,$PRE.step3.newActive,T2.enableFire,step2.inport_fire,step2.newActive,$PRE.step2.newActive,T1.enableFire,T1.condition,initialStep.newActive,$PRE.initialStep.newActive,initialStep.active,$whenCondition3,$whenCondition2,$whenCondition1,step3.outPort[1].checkOneDelayedTransitionPerLoop,T3.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T2.condition,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 1 * 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.000243/0.1478, allocations: 232.6 kB / 488.1 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.873e-05/0.1479, allocations: 27.8 kB / 488.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000386/0.1483, allocations: 243.6 kB / 488.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.1483, allocations: 0 / 488.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.1483, allocations: 4 kB / 488.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1483, allocations: 3.984 kB / 488.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008037/0.1491, allocations: 0.6704 MB / 489 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1491, allocations: 0 / 489 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.071e-05/0.1492, allocations: 7.984 kB / 489 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1492, allocations: 4 kB / 489 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.1492, allocations: 7.938 kB / 489 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.1492, allocations: 4 kB / 489 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1492, allocations: 0 / 489 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003475/0.1496, allocations: 332.8 kB / 489.4 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.001e-05/0.1497, allocations: 112.9 kB / 489.5 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.638e-05/0.1497, allocations: 8 kB / 489.5 MB, free: 9.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.1498, allocations: 15.98 kB / 489.5 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.712e-05/0.1499, allocations: 19.98 kB / 489.5 MB, free: 9.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.676e-05/0.1499, allocations: 8 kB / 489.5 MB, free: 9.504 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.1501, allocations: 143.2 kB / 489.7 MB, free: 9.363 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1501, allocations: 0 / 489.7 MB, free: 9.363 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003652/0.1504, allocations: 83.73 kB / 489.7 MB, free: 9.281 MB / 366.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: 23 (T3.enableFire,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.enableFire,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start,onDelay.y,onDelay.u,onDelay.delaySignal,onDelay.t_next) * Number of discrete states: 7 (initialStep.newActive,step2.newActive,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2,step3.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001864/0.1506, allocations: 134.8 kB / 489.9 MB, free: 9.137 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004038/0.1511, allocations: 259 kB / 490.1 MB, free: 8.871 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1511, allocations: 3.938 kB / 490.1 MB, free: 8.867 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.1512, allocations: 152.6 kB / 490.3 MB, free: 8.707 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.1516, allocations: 32.64 kB / 490.3 MB, free: 8.672 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000855/0.1524, allocations: 0.511 MB / 490.8 MB, free: 8.137 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004205/0.1529, allocations: 0.7955 MB / 491.6 MB, free: 7.312 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001487/0.153, allocations: 34.95 kB / 491.7 MB, free: 7.273 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.496e-05/0.1531, allocations: 23.44 kB / 491.7 MB, free: 7.25 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1531, allocations: 0 / 491.7 MB, free: 7.25 MB / 366.1 MB Notification: Performance of Templates: time 0.006294/0.1594, allocations: 2.166 MB / 493.8 MB, free: 5.102 MB / 366.1 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.pipe 2>&1)