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.01393/0.01393, allocations: 102.8 kB / 15.73 MB, free: 6.484 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.002107/0.002107, allocations: 196.4 kB / 16.68 MB, free: 6.375 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2545/0.2545, allocations: 13.54 MB / 304.1 MB, free: 0.6289 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.001371, allocations: 56.09 kB / 421.7 MB, free: 0.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2894, allocations: 52.7 MB / 474.4 MB, free: 28.75 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3): time 0.002973/0.2924, allocations: 1.884 MB / 476.3 MB, free: 27.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.2938, allocations: 0.8417 MB / 477.2 MB, free: 26.59 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.294, allocations: 12.69 kB / 477.2 MB, free: 26.59 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009729/0.2949, allocations: 0.5991 MB / 477.8 MB, free: 26.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.155e-05/0.295, allocations: 34.31 kB / 477.8 MB, free: 26.11 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.0006799/0.2957, allocations: 258.3 kB / 478.1 MB, free: 25.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004608/0.2962, allocations: 467.3 kB / 478.5 MB, free: 25.63 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006075/0.2968, allocations: 0.5252 MB / 479.1 MB, free: 25.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000185/0.297, allocations: 176 kB / 479.2 MB, free: 25.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.2972, allocations: 163.9 kB / 479.4 MB, free: 25.08 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.647e-05/0.2972, allocations: 40.94 kB / 479.4 MB, free: 25.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.2973, allocations: 49.5 kB / 479.5 MB, free: 25.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.593e-05/0.2974, allocations: 100.9 kB / 479.6 MB, free: 25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.2976, allocations: 181.5 kB / 479.7 MB, free: 24.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003981/0.298, allocations: 467.1 kB / 480.2 MB, free: 24.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.298, allocations: 0 / 480.2 MB, free: 24.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.298, allocations: 0 / 480.2 MB, free: 24.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.298, allocations: 0 / 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.0007616/0.2988, allocations: 0.6764 MB / 480.9 MB, free: 23.9 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.2988, allocations: 14.05 kB / 480.9 MB, free: 23.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.607e-05/0.2989, allocations: 41.78 kB / 480.9 MB, free: 23.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004244/0.2993, allocations: 342.1 kB / 481.3 MB, free: 23.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.163e-05/0.2994, allocations: 66.66 kB / 481.3 MB, free: 23.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.211e-05/0.2995, allocations: 41.12 kB / 481.4 MB, free: 23.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006237/0.3001, allocations: 472.6 kB / 481.8 MB, free: 23.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.3002, allocations: 1.125 kB / 481.8 MB, free: 23.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.497e-05/0.3002, allocations: 16.34 kB / 481.9 MB, free: 23.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.3002, allocations: 11.16 kB / 481.9 MB, free: 23.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004737/0.3007, allocations: 307.6 kB / 482.2 MB, free: 23.01 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.3023, allocations: 1.907 MB / 484.1 MB, free: 21.24 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003415/0.3027, allocations: 417.6 kB / 484.5 MB, free: 20.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001259/0.3028, allocations: 82.62 kB / 484.6 MB, free: 20.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005734/0.3034, allocations: 0.7225 MB / 485.3 MB, free: 20.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001976/0.3036, allocations: 183.1 kB / 485.5 MB, free: 19.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.3036, allocations: 3.938 kB / 485.5 MB, free: 19.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004466/0.3041, allocations: 261.8 kB / 485.7 MB, free: 19.74 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.589e-05/0.3042, allocations: 168.5 kB / 485.9 MB, free: 19.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001997/0.3044, allocations: 254.4 kB / 486.1 MB, free: 19.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.3044, allocations: 37.53 kB / 486.2 MB, free: 19.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.3045, allocations: 202.8 kB / 486.4 MB, free: 19.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.138e-05/0.3046, allocations: 58.05 kB / 486.4 MB, free: 19.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.3047, allocations: 108.2 kB / 486.5 MB, free: 19.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.468e-05/0.3048, allocations: 336.4 kB / 486.9 MB, free: 18.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.3049, allocations: 70.83 kB / 486.9 MB, free: 18.65 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.3051, allocations: 226.2 kB / 487.1 MB, free: 18.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002685/0.3054, allocations: 336.8 kB / 487.5 MB, free: 18.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3054, allocations: 5.406 kB / 487.5 MB, free: 18.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0004596/0.3058, allocations: 358.3 kB / 487.8 MB, free: 17.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.403e-05/0.3059, allocations: 41.44 kB / 487.9 MB, free: 17.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.3059, allocations: 5.312 kB / 487.9 MB, free: 17.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.379e-05/0.3059, allocations: 10.41 kB / 487.9 MB, free: 17.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.146e-05/0.306, allocations: 23.11 kB / 487.9 MB, free: 17.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.3061, allocations: 11.53 kB / 487.9 MB, free: 17.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001613/0.3062, allocations: 32.31 kB / 488 MB, free: 17.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.231e-05/0.3063, allocations: 22.83 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.0001776/0.3064, allocations: 229.7 kB / 488.2 MB, free: 17.6 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.4e-05/0.3065, allocations: 30.92 kB / 488.2 MB, free: 17.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003413/0.3068, allocations: 246.5 kB / 488.5 MB, free: 17.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3068, allocations: 2.125 kB / 488.5 MB, free: 17.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.3069, allocations: 1.188 kB / 488.5 MB, free: 17.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.3069, allocations: 0 / 488.5 MB, free: 17.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006994/0.3076, allocations: 0.6764 MB / 489.2 MB, free: 16.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3076, allocations: 0 / 489.2 MB, free: 16.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.755e-05/0.3076, allocations: 6.234 kB / 489.2 MB, free: 16.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.3076, allocations: 1.094 kB / 489.2 MB, free: 16.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.3076, allocations: 7.406 kB / 489.2 MB, free: 16.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3076, allocations: 1.188 kB / 489.2 MB, free: 16.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3077, allocations: 0 / 489.2 MB, free: 16.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003044/0.308, allocations: 338.5 kB / 489.5 MB, free: 16.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.793e-05/0.308, allocations: 110.5 kB / 489.6 MB, free: 16.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.26e-05/0.3081, allocations: 8.281 kB / 489.6 MB, free: 16.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.3082, allocations: 13.55 kB / 489.6 MB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.928e-05/0.3083, allocations: 20.73 kB / 489.6 MB, free: 16.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.3083, allocations: 6.375 kB / 489.7 MB, free: 16.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.479e-05/0.3084, allocations: 151 kB / 489.8 MB, free: 16.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3084, allocations: 3.938 kB / 489.8 MB, free: 16.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000363/0.3088, allocations: 82.22 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.0001594/0.3089, allocations: 121.6 kB / 490 MB, free: 16.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003637/0.3093, allocations: 271.6 kB / 490.3 MB, free: 16.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3093, allocations: 0 / 490.3 MB, free: 16.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.3095, allocations: 151.8 kB / 490.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002855/0.3098, allocations: 31.27 kB / 490.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007875/0.3106, allocations: 0.5083 MB / 491 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.3108, allocations: 0.8012 MB / 491.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.3109, allocations: 35.77 kB / 491.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.248e-05/0.311, allocations: 22.81 kB / 491.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.311, allocations: 0 / 491.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of Templates: time 0.006205/0.3172, allocations: 2.158 MB / 494 MB, free: 13.76 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)