Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00739/0.00739, allocations: 101.1 kB / 15.73 MB, free: 6.043 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.001249/0.001249, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2484/0.2484, allocations: 13.53 MB / 304.1 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.89 kB / 421.8 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3154, allocations: 52.7 MB / 474.5 MB, free: 28.79 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample): time 0.002755/0.3182, allocations: 1.817 MB / 476.3 MB, free: 27.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.3198, allocations: 0.8263 MB / 477.1 MB, free: 26.7 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.32, allocations: 19.06 kB / 477.1 MB, free: 26.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.3211, allocations: 0.599 MB / 477.7 MB, free: 26.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.397e-05/0.3212, allocations: 30.89 kB / 477.7 MB, free: 26.2 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.0006498/0.3219, allocations: 236.5 kB / 478 MB, free: 26.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004984/0.3224, allocations: 436.3 kB / 478.4 MB, free: 25.76 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000707/0.3231, allocations: 0.4996 MB / 478.9 MB, free: 25.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001819/0.3233, allocations: 160.8 kB / 479.1 MB, free: 25.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001759/0.3235, allocations: 154.5 kB / 479.2 MB, free: 25.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.611e-05/0.3235, allocations: 34.38 kB / 479.2 MB, free: 25.25 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.3236, allocations: 50.61 kB / 479.3 MB, free: 25.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.3238, allocations: 104.2 kB / 479.4 MB, free: 25.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.3239, allocations: 170.8 kB / 479.6 MB, free: 25.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004264/0.3243, allocations: 440.9 kB / 480 MB, free: 24.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3243, allocations: 0 / 480 MB, free: 24.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3244, allocations: 0 / 480 MB, free: 24.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.3244, allocations: 5.312 kB / 480 MB, free: 24.71 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0007468/0.3251, allocations: 0.6403 MB / 480.6 MB, free: 24.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3252, allocations: 12.89 kB / 480.6 MB, free: 24.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.922e-05/0.3253, allocations: 41.44 kB / 480.7 MB, free: 24.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003964/0.3257, allocations: 331.8 kB / 481 MB, free: 23.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.669e-05/0.3257, allocations: 33.56 kB / 481 MB, free: 23.78 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.1e-05/0.3258, allocations: 38.44 kB / 481.1 MB, free: 23.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006818/0.3265, allocations: 464.5 kB / 481.5 MB, free: 23.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.3265, allocations: 0 / 481.5 MB, free: 23.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.881e-05/0.3265, allocations: 16.5 kB / 481.6 MB, free: 23.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.3266, allocations: 9.656 kB / 481.6 MB, free: 23.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004869/0.327, allocations: 289 kB / 481.8 MB, free: 23.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.3286, allocations: 1.874 MB / 483.7 MB, free: 21.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00029/0.3289, allocations: 394.4 kB / 484.1 MB, free: 21.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.32e-05/0.329, allocations: 60.59 kB / 484.2 MB, free: 21.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.651e-05/0.3291, allocations: 96.09 kB / 484.3 MB, free: 20.99 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001606/0.3292, allocations: 111.9 kB / 484.4 MB, free: 20.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.453e-06/0.3293, allocations: 3.938 kB / 484.4 MB, free: 20.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003891/0.3297, allocations: 214.3 kB / 484.6 MB, free: 20.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.3297, allocations: 107.1 kB / 484.7 MB, free: 20.67 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.3299, allocations: 253.4 kB / 484.9 MB, free: 20.47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.3299, allocations: 33.14 kB / 485 MB, free: 20.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.3301, allocations: 193.8 kB / 485.2 MB, free: 20.27 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.597e-05/0.3301, allocations: 52.47 kB / 485.2 MB, free: 20.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.3302, allocations: 108 kB / 485.3 MB, free: 20.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.842e-05/0.3303, allocations: 335.2 kB / 485.6 MB, free: 19.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.3304, allocations: 73.77 kB / 485.7 MB, free: 19.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001951/0.3306, allocations: 221.4 kB / 485.9 MB, free: 19.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/0.3309, allocations: 277.8 kB / 486.2 MB, free: 19.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.3309, allocations: 1.031 kB / 486.2 MB, free: 19.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004963/0.3314, allocations: 321 kB / 486.5 MB, free: 19.14 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.3315, allocations: 4.406 kB / 486.5 MB, free: 19.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.3315, allocations: 8.562 kB / 486.5 MB, free: 19.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/0.3315, allocations: 6.688 kB / 486.5 MB, free: 19.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.3316, allocations: 22.7 kB / 486.6 MB, free: 19.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.741e-05/0.3316, allocations: 10.41 kB / 486.6 MB, free: 19.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001995/0.3318, allocations: 40.77 kB / 486.6 MB, free: 19.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.989e-05/0.3319, allocations: 18.12 kB / 486.6 MB, free: 19.09 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 46 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,step2.oldActive,$PRE.step2.oldActive,step3.oldActive,$PRE.step3.oldActive,T3.t_start,$PRE.T3.t_start,T3.enableFire,T3.fire,step3.outport_fire,step3.inport_fire,step3.newActive,$PRE.step3.newActive,T2.t_start,$PRE.T2.t_start,T2.enableFire,T2.fire,step2.outport_fire,step2.inport_fire,step2.newActive,$PRE.step2.newActive,T1.enableFire,T1.condition,initialStep.outport_fire,initialStep.inport_fire,initialStep.newActive,$PRE.initialStep.newActive,initialStep.active,$whenCondition1,$whenCondition2,T3.condition,T2.condition,initialStep.connectorNode.node.suspend,initialStep.connectorNode.node.resume,T3.outPort.checkOneDelayedTransitionPerLoop,step2.inPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[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 (47): * Single equations (assignments): 47 * 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.0002249/0.3321, allocations: 195.3 kB / 486.8 MB, free: 18.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.577e-05/0.3322, allocations: 21.41 kB / 486.8 MB, free: 18.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003219/0.3325, allocations: 194.7 kB / 487 MB, free: 18.79 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3325, allocations: 2.188 kB / 487 MB, free: 18.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.3325, allocations: 0 / 487 MB, free: 18.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.3325, allocations: 1.188 kB / 487 MB, free: 18.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007155/0.3333, allocations: 0.6239 MB / 487.6 MB, free: 18.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3333, allocations: 0 / 487.6 MB, free: 18.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.22e-05/0.3333, allocations: 15.52 kB / 487.7 MB, free: 18.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.3333, allocations: 1.062 kB / 487.7 MB, free: 18.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.3333, allocations: 9.156 kB / 487.7 MB, free: 18.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.3333, allocations: 1.125 kB / 487.7 MB, free: 18.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3333, allocations: 1.094 kB / 487.7 MB, free: 18.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002728/0.3336, allocations: 271.9 kB / 487.9 MB, free: 18.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.276e-05/0.3337, allocations: 105.7 kB / 488 MB, free: 17.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.74e-05/0.3337, allocations: 14.05 kB / 488.1 MB, free: 17.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.3339, allocations: 13.66 kB / 488.1 MB, free: 17.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.535e-05/0.334, allocations: 25.05 kB / 488.1 MB, free: 17.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.334, allocations: 9.578 kB / 488.1 MB, free: 17.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001093/0.3341, allocations: 141.7 kB / 488.2 MB, free: 17.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.11e-07/0.3341, allocations: 1.281 kB / 488.2 MB, free: 17.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003842/0.3345, allocations: 80.53 kB / 488.3 MB, free: 17.77 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 (initialStep.inport_fire,initialStep.outport_fire,step2.outport_fire,T2.enableFire,T3.enableFire,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.fire,T2.t_start,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start) * Number of discrete states: 3 (step3.newActive,step2.newActive,initialStep.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001782/0.3347, allocations: 118.5 kB / 488.4 MB, free: 17.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003809/0.3351, allocations: 199.4 kB / 488.6 MB, free: 17.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3351, allocations: 1.25 kB / 488.6 MB, free: 17.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001169/0.3352, allocations: 73.42 kB / 488.7 MB, free: 17.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002987/0.3355, allocations: 26.69 kB / 488.7 MB, free: 17.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007864/0.3363, allocations: 487.7 kB / 489.2 MB, free: 17.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.3365, allocations: 0.7861 MB / 490 MB, free: 16.47 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.3367, allocations: 38.11 kB / 490 MB, free: 16.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.593e-05/0.3367, allocations: 23.19 kB / 490.1 MB, free: 16.45 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3367, allocations: 0 / 490.1 MB, free: 16.45 MB / 366.1 MB Notification: Performance of Templates: time 0.006122/0.3429, allocations: 2.272 MB / 492.3 MB, free: 15.32 MB / 366.1 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.pipe 2>&1)