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.0009971/0.0009974, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001195/0.001195, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.2 MB / 239.9 MB, free: 5.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2693/0.2693, allocations: 13.55 MB / 304.5 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004269/0.0004269, allocations: 12 kB / 368.7 MB, free: 6.613 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1421, allocations: 53.71 MB / 422.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample): time 0.2316/0.3738, allocations: 1.452 MB / 423.9 MB, free: 42.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.3749, allocations: 0.7684 MB / 424.7 MB, free: 41.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.3751, allocations: 9.844 kB / 424.7 MB, free: 41.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.3753, allocations: 35.42 kB / 424.7 MB, free: 41.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.229e-05/0.3753, allocations: 34.09 kB / 424.8 MB, free: 41.89 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.0005436/0.3759, allocations: 185.5 kB / 424.9 MB, free: 41.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003044/0.3762, allocations: 269.7 kB / 425.2 MB, free: 41.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007762/0.377, allocations: 0.7122 MB / 425.9 MB, free: 41.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.3771, allocations: 124 kB / 426 MB, free: 41.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.3772, allocations: 111.4 kB / 426.1 MB, free: 41.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.917e-05/0.3773, allocations: 13.5 kB / 426.2 MB, free: 41.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.881e-05/0.3774, allocations: 28 kB / 426.2 MB, free: 41.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.893e-05/0.3775, allocations: 68.8 kB / 426.3 MB, free: 41.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.422e-05/0.3775, allocations: 78.83 kB / 426.3 MB, free: 41.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002377/0.3778, allocations: 269.5 kB / 426.6 MB, free: 41.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.766e-06/0.3778, allocations: 0 / 426.6 MB, free: 41.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3778, allocations: 4 kB / 426.6 MB, free: 41.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.3778, allocations: 2.812 kB / 426.6 MB, free: 41.51 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0006325/0.3784, allocations: 0.546 MB / 427.1 MB, free: 41.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.3785, allocations: 8.281 kB / 427.2 MB, free: 41.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.637e-05/0.3786, allocations: 45.36 kB / 427.2 MB, free: 41.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003292/0.3789, allocations: 309.7 kB / 427.5 MB, free: 40.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.379e-05/0.3789, allocations: 31.03 kB / 427.5 MB, free: 40.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.435e-05/0.379, allocations: 50.12 kB / 427.6 MB, free: 40.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005974/0.3796, allocations: 442.7 kB / 428 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.3796, allocations: 0.75 kB / 428 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.832e-05/0.3797, allocations: 18.78 kB / 428 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.3797, allocations: 16.06 kB / 428.1 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004246/0.3801, allocations: 280.5 kB / 428.3 MB, free: 40.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001507/0.3816, allocations: 1.894 MB / 430.2 MB, free: 39.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.3819, allocations: 384.6 kB / 430.6 MB, free: 39.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.604e-05/0.382, allocations: 80.3 kB / 430.7 MB, free: 38.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002143/0.3822, allocations: 112.6 kB / 430.8 MB, free: 38.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.933e-06/0.3822, allocations: 0 / 430.8 MB, free: 38.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003909/0.3826, allocations: 212.5 kB / 431 MB, free: 38.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.94e-05/0.3827, allocations: 109 kB / 431.1 MB, free: 38.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002444/0.3829, allocations: 249.1 kB / 431.3 MB, free: 38.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.383, allocations: 32.02 kB / 431.4 MB, free: 38.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.3831, allocations: 197.5 kB / 431.6 MB, free: 38.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.718e-05/0.3832, allocations: 57.73 kB / 431.6 MB, free: 38.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.273e-05/0.3832, allocations: 6.75 kB / 431.6 MB, free: 38.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.3833, allocations: 340.8 kB / 432 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.3834, allocations: 65.19 kB / 432 MB, free: 38.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.3836, allocations: 218.6 kB / 432.2 MB, free: 37.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001503/0.3838, allocations: 87.16 kB / 432.3 MB, free: 37.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.3838, allocations: 7.391 kB / 432.3 MB, free: 37.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004367/0.3842, allocations: 311.1 kB / 432.6 MB, free: 37.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.3843, allocations: 5.906 kB / 432.6 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.3843, allocations: 12.62 kB / 432.7 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.687e-05/0.3843, allocations: 7.156 kB / 432.7 MB, free: 37.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.968e-05/0.3844, allocations: 28.58 kB / 432.7 MB, free: 37.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.675e-05/0.3845, allocations: 14.11 kB / 432.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/0.3847, allocations: 33.41 kB / 432.7 MB, free: 37.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.478e-05/0.3847, allocations: 17.84 kB / 432.7 MB, free: 37.81 MB / 350.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,$PRE.initialStep.oldActive,initialStep.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.step3.oldActive,step3.oldActive,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,initialStep.outport_fire,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.outport_fire,T2.fire,T2.enableFire,$PRE.T2.t_start,T2.t_start,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002173/0.3849, allocations: 205.2 kB / 432.9 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.506e-05/0.385, allocations: 20.52 kB / 433 MB, free: 37.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003009/0.3853, allocations: 185 kB / 433.2 MB, free: 37.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.3853, allocations: 2.906 kB / 433.2 MB, free: 37.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3853, allocations: 3.984 kB / 433.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3853, allocations: 3.234 kB / 433.2 MB, free: 37.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000786/0.3861, allocations: 0.6313 MB / 433.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.3861, allocations: 2.125 kB / 433.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.786e-05/0.3861, allocations: 3.656 kB / 433.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.3861, allocations: 6.312 kB / 433.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.3862, allocations: 2.5 kB / 433.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.277e-06/0.3862, allocations: 6.938 kB / 433.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3862, allocations: 0.5469 kB / 433.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003022/0.3865, allocations: 272.1 kB / 434.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.966e-05/0.3866, allocations: 104.4 kB / 434.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.64e-05/0.3866, allocations: 5.719 kB / 434.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001225/0.3868, allocations: 12.39 kB / 434.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.991e-05/0.3869, allocations: 25.83 kB / 434.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.3869, allocations: 4.312 kB / 434.2 MB, free: 37.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000124/0.387, allocations: 140.5 kB / 434.4 MB, free: 36.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.387, allocations: 4 kB / 434.4 MB, free: 36.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003583/0.3874, allocations: 81.86 kB / 434.4 MB, free: 36.95 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001937/0.3876, allocations: 117.7 kB / 434.6 MB, free: 36.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003167/0.3879, allocations: 199.2 kB / 434.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3879, allocations: 0 / 434.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001234/0.388, allocations: 76.7 kB / 434.8 MB, free: 36.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002241/0.3883, allocations: 30.89 kB / 434.9 MB, free: 36.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008343/0.3891, allocations: 0.55 MB / 435.4 MB, free: 36.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.3894, allocations: 0.7958 MB / 436.2 MB, free: 35.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.3895, allocations: 46.06 kB / 436.3 MB, free: 35.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.853e-05/0.3896, allocations: 26.41 kB / 436.3 MB, free: 35.75 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3896, allocations: 0 / 436.3 MB, free: 35.75 MB / 350.1 MB Notification: Performance of Templates: time 0.00623/0.3958, allocations: 2 MB / 438.3 MB, free: 35.59 MB / 350.1 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: