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.001215/0.001215, allocations: 103.4 kB / 15.33 MB, free: 0.5039 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.001351/0.001351, allocations: 197.2 kB / 16.25 MB, free: 6.621 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.421/1.421, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2301/0.2301, allocations: 13.54 MB / 303.6 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001143, allocations: 59.91 kB / 367.3 MB, free: 6.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.108, allocations: 52.7 MB / 420 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3): time 0.002824/0.1109, allocations: 1.927 MB / 421.9 MB, free: 132 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.1123, allocations: 0.8221 MB / 422.7 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.1124, allocations: 15.88 kB / 422.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000942/0.1134, allocations: 0.5484 MB / 423.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.888e-05/0.1135, allocations: 19.8 kB / 423.3 MB, free: 14.71 MB / 366.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.0005942/0.1141, allocations: 221 kB / 423.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004103/0.1145, allocations: 463 kB / 424 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006532/0.1151, allocations: 0.5723 MB / 424.6 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001539/0.1153, allocations: 175.3 kB / 424.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.1155, allocations: 171.2 kB / 424.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.59e-05/0.1155, allocations: 36 kB / 424.9 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.086e-05/0.1156, allocations: 55.98 kB / 425 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.77e-05/0.1157, allocations: 95.75 kB / 425.1 MB, free: 12.95 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.1159, allocations: 175 kB / 425.3 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000374/0.1162, allocations: 434.6 kB / 425.7 MB, free: 12.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.1163, allocations: 0 / 425.7 MB, free: 12.35 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.1163, allocations: 0 / 425.7 MB, free: 12.35 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.1163, allocations: 0 / 425.7 MB, free: 12.35 MB / 366.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.0007316/0.117, allocations: 0.6839 MB / 426.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.117, allocations: 11.89 kB / 426.4 MB, free: 11.6 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.201e-05/0.1171, allocations: 48.45 kB / 426.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.1175, allocations: 315.6 kB / 426.7 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.224e-05/0.1176, allocations: 59.27 kB / 426.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.917e-05/0.1176, allocations: 40.38 kB / 426.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000639/0.1183, allocations: 479.5 kB / 427.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.1183, allocations: 4 kB / 427.3 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.565e-05/0.1183, allocations: 19.98 kB / 427.3 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.1184, allocations: 12 kB / 427.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004541/0.1188, allocations: 298.3 kB / 427.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.1206, allocations: 1.934 MB / 429.6 MB, free: 8.195 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004636/0.1211, allocations: 413 kB / 430 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.1212, allocations: 88.2 kB / 430.1 MB, free: 7.629 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006771/0.1219, allocations: 0.7204 MB / 430.8 MB, free: 6.844 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002724/0.1222, allocations: 174.7 kB / 430.9 MB, free: 6.648 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.634e-06/0.1222, allocations: 0 / 430.9 MB, free: 6.648 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004383/0.1226, allocations: 263.1 kB / 431.2 MB, free: 6.379 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.438e-05/0.1227, allocations: 166.2 kB / 431.4 MB, free: 6.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002238/0.123, allocations: 254.8 kB / 431.6 MB, free: 5.918 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.19e-05/0.123, allocations: 33.7 kB / 431.6 MB, free: 5.879 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001611/0.1232, allocations: 208.2 kB / 431.8 MB, free: 5.672 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.454e-05/0.1232, allocations: 51.38 kB / 431.9 MB, free: 5.621 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.1234, allocations: 114 kB / 432 MB, free: 5.504 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.1236, allocations: 334.8 kB / 432.3 MB, free: 5.168 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.1237, allocations: 76.83 kB / 432.4 MB, free: 5.094 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002582/0.124, allocations: 219.2 kB / 432.6 MB, free: 4.809 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004044/0.1244, allocations: 345.1 kB / 433 MB, free: 4.395 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1244, allocations: 0 / 433 MB, free: 4.395 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005787/0.125, allocations: 359 kB / 433.3 MB, free: 4.031 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.808e-05/0.125, allocations: 37.73 kB / 433.3 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.1251, allocations: 4 kB / 433.4 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.1251, allocations: 8 kB / 433.4 MB, free: 3.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.1252, allocations: 31.86 kB / 433.4 MB, free: 3.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.1252, allocations: 4 kB / 433.4 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.1254, allocations: 35.67 kB / 433.4 MB, free: 3.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.761e-05/0.1255, allocations: 24 kB / 433.5 MB, free: 3.883 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.0003073/0.1258, allocations: 232.6 kB / 433.7 MB, free: 3.641 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.177e-05/0.1258, allocations: 23.75 kB / 433.7 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004069/0.1262, allocations: 259.1 kB / 434 MB, free: 3.359 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.1263, allocations: 7.984 kB / 434 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1263, allocations: 0 / 434 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1263, allocations: 0 / 434 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008803/0.1272, allocations: 0.664 MB / 434.6 MB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.1272, allocations: 0 / 434.6 MB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.037e-05/0.1272, allocations: 7.984 kB / 434.6 MB, free: 2.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.1272, allocations: 0 / 434.6 MB, free: 2.617 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.1272, allocations: 8 kB / 434.6 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.429e-06/0.1272, allocations: 3.938 kB / 434.6 MB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1273, allocations: 0 / 434.6 MB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003683/0.1276, allocations: 332.8 kB / 435 MB, free: 2.262 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.484e-05/0.1277, allocations: 116.7 kB / 435.1 MB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.444e-05/0.1278, allocations: 8 kB / 435.1 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.1279, allocations: 15.98 kB / 435.1 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.158e-05/0.128, allocations: 19.97 kB / 435.1 MB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.128, allocations: 7.984 kB / 435.1 MB, free: 2.078 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001095/0.1281, allocations: 143.2 kB / 435.3 MB, free: 1.938 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1281, allocations: 3.938 kB / 435.3 MB, free: 1.934 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003904/0.1285, allocations: 79.69 kB / 435.4 MB, free: 1.855 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.000179/0.1287, allocations: 127.4 kB / 435.5 MB, free: 1.719 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003908/0.1291, allocations: 278.6 kB / 435.8 MB, free: 1.438 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1291, allocations: 0 / 435.8 MB, free: 1.438 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001583/0.1293, allocations: 147.3 kB / 435.9 MB, free: 1.281 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/0.1296, allocations: 28.72 kB / 435.9 MB, free: 1.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008648/0.1304, allocations: 0.6315 MB / 436.6 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1754/0.3059, allocations: 0.7858 MB / 437.3 MB, free: 58.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001681/0.306, allocations: 39.48 kB / 437.4 MB, free: 58.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.639e-05/0.3061, allocations: 27.47 kB / 437.4 MB, free: 58.45 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3061, allocations: 2.75 kB / 437.4 MB, free: 58.45 MB / 366.1 MB Notification: Performance of Templates: time 0.004963/0.3111, allocations: 2.084 MB / 439.5 MB, free: 58.39 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)