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.009123/0.009124, allocations: 100.7 kB / 15.73 MB, free: 6.453 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.002024/0.002024, allocations: 184.8 kB / 16.67 MB, free: 6.367 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2238/0.2238, allocations: 13.54 MB / 304.1 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 71.88 kB / 421.8 MB, free: 0.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3131, allocations: 52.69 MB / 474.4 MB, free: 28.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3): time 0.002685/0.3158, allocations: 1.884 MB / 476.3 MB, free: 27.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001353/0.3172, allocations: 0.8414 MB / 477.2 MB, free: 26.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.3174, allocations: 12.25 kB / 477.2 MB, free: 26.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001003/0.3184, allocations: 0.5964 MB / 477.8 MB, free: 26.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.074e-05/0.3185, allocations: 37.38 kB / 477.8 MB, free: 26.1 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.000678/0.3192, allocations: 248.8 kB / 478.1 MB, free: 25.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004319/0.3196, allocations: 464.8 kB / 478.5 MB, free: 25.63 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006276/0.3202, allocations: 0.5408 MB / 479.1 MB, free: 25.31 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000172/0.3204, allocations: 169.2 kB / 479.2 MB, free: 25.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.3206, allocations: 167.9 kB / 479.4 MB, free: 25.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.192e-05/0.3207, allocations: 37.41 kB / 479.4 MB, free: 25.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.3208, allocations: 52.59 kB / 479.5 MB, free: 25.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.514e-05/0.3209, allocations: 100.6 kB / 479.6 MB, free: 24.99 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.321, allocations: 177.3 kB / 479.7 MB, free: 24.85 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004487/0.3215, allocations: 463 kB / 480.2 MB, free: 24.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3215, allocations: 0 / 480.2 MB, free: 24.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3215, allocations: 1.938 kB / 480.2 MB, free: 24.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.3215, allocations: 4 kB / 480.2 MB, free: 24.52 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.0007727/0.3223, allocations: 0.6803 MB / 480.9 MB, free: 23.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.3223, allocations: 11.89 kB / 480.9 MB, free: 23.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.051e-05/0.3224, allocations: 43.44 kB / 480.9 MB, free: 23.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.3229, allocations: 336.5 kB / 481.3 MB, free: 23.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.29e-05/0.323, allocations: 70.5 kB / 481.3 MB, free: 23.5 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.101e-05/0.323, allocations: 41.94 kB / 481.4 MB, free: 23.49 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006595/0.3237, allocations: 473.4 kB / 481.8 MB, free: 23.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.3237, allocations: 0 / 481.8 MB, free: 23.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.802e-05/0.3238, allocations: 22 kB / 481.9 MB, free: 23.15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.3238, allocations: 9.469 kB / 481.9 MB, free: 23.15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004652/0.3242, allocations: 304.4 kB / 482.2 MB, free: 23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.3259, allocations: 1.911 MB / 484.1 MB, free: 21.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003139/0.3262, allocations: 411.9 kB / 484.5 MB, free: 20.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.3263, allocations: 83.16 kB / 484.6 MB, free: 20.78 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005582/0.3269, allocations: 0.7268 MB / 485.3 MB, free: 20.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001972/0.3271, allocations: 172 kB / 485.5 MB, free: 19.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.014e-06/0.3271, allocations: 0 / 485.5 MB, free: 19.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004223/0.3276, allocations: 266.9 kB / 485.7 MB, free: 19.74 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.3276, allocations: 167.5 kB / 485.9 MB, free: 19.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.3278, allocations: 250.7 kB / 486.1 MB, free: 19.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.3278, allocations: 46.66 kB / 486.2 MB, free: 19.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.176e-05/0.3279, allocations: 201.8 kB / 486.4 MB, free: 19.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.346e-05/0.328, allocations: 57.27 kB / 486.4 MB, free: 19.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.3281, allocations: 109.5 kB / 486.5 MB, free: 19.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.678e-05/0.3282, allocations: 335.7 kB / 486.9 MB, free: 18.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.3283, allocations: 72.02 kB / 486.9 MB, free: 18.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.3285, allocations: 222.3 kB / 487.1 MB, free: 18.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/0.3288, allocations: 343.8 kB / 487.5 MB, free: 18.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3288, allocations: 1.281 kB / 487.5 MB, free: 18.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004544/0.3293, allocations: 357.9 kB / 487.8 MB, free: 17.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.749e-05/0.3293, allocations: 42.5 kB / 487.9 MB, free: 17.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.3293, allocations: 4.844 kB / 487.9 MB, free: 17.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/0.3293, allocations: 6.375 kB / 487.9 MB, free: 17.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.553e-05/0.3294, allocations: 31.58 kB / 487.9 MB, free: 17.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.3295, allocations: 7.219 kB / 487.9 MB, free: 17.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001725/0.3296, allocations: 32.77 kB / 487.9 MB, free: 17.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.488e-05/0.3297, allocations: 22.28 kB / 488 MB, free: 17.8 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.0001929/0.3299, allocations: 238 kB / 488.2 MB, free: 17.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.729e-05/0.3299, allocations: 23.31 kB / 488.2 MB, free: 17.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000383/0.3303, allocations: 244.3 kB / 488.5 MB, free: 17.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.3303, allocations: 1.188 kB / 488.5 MB, free: 17.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3303, allocations: 5.031 kB / 488.5 MB, free: 17.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.3304, allocations: 0 / 488.5 MB, free: 17.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007758/0.3311, allocations: 0.6723 MB / 489.1 MB, free: 16.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3312, allocations: 0 / 489.1 MB, free: 16.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.998e-05/0.3312, allocations: 7.078 kB / 489.2 MB, free: 16.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.3312, allocations: 1.656 kB / 489.2 MB, free: 16.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.3312, allocations: 9.875 kB / 489.2 MB, free: 16.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.82e-06/0.3312, allocations: 5.641 kB / 489.2 MB, free: 16.87 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3312, allocations: 0 / 489.2 MB, free: 16.87 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003514/0.3316, allocations: 335 kB / 489.5 MB, free: 16.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.115e-05/0.3317, allocations: 110.4 kB / 489.6 MB, free: 16.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.723e-05/0.3317, allocations: 8.281 kB / 489.6 MB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.3318, allocations: 8.359 kB / 489.6 MB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.814e-05/0.3319, allocations: 17.67 kB / 489.6 MB, free: 16.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.832e-05/0.332, allocations: 14.34 kB / 489.6 MB, free: 16.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001017/0.3321, allocations: 142.7 kB / 489.8 MB, free: 16.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3321, allocations: 0 / 489.8 MB, free: 16.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004028/0.3325, allocations: 90.59 kB / 489.9 MB, free: 16.34 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.0002402/0.3327, allocations: 130.6 kB / 490 MB, free: 16.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005549/0.3333, allocations: 261.1 kB / 490.3 MB, free: 16.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3333, allocations: 5.188 kB / 490.3 MB, free: 16.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.3335, allocations: 158.7 kB / 490.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.3338, allocations: 29.41 kB / 490.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009775/0.3348, allocations: 0.5011 MB / 490.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.3352, allocations: 0.7927 MB / 491.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001276/0.3353, allocations: 39.92 kB / 491.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.806e-05/0.3354, allocations: 22.81 kB / 491.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.3354, allocations: 3.938 kB / 491.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of Templates: time 0.006138/0.3415, allocations: 2.232 MB / 494 MB, free: 13.7 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)