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.001051/0.001051, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001387/0.001387, allocations: 168.7 kB / 15.95 MB, free: 200 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.459/1.459, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2376/0.2376, allocations: 13.56 MB / 304.7 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003516/0.0003518, allocations: 8 kB / 368.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.128, allocations: 53.7 MB / 422.6 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample): time 0.2588/0.3868, allocations: 1.462 MB / 424 MB, free: 41.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.3881, allocations: 0.7829 MB / 424.8 MB, free: 41.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.3883, allocations: 12.84 kB / 424.8 MB, free: 41.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001809/0.3885, allocations: 45.86 kB / 424.9 MB, free: 41.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.682e-05/0.3886, allocations: 16.03 kB / 424.9 MB, free: 41.79 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.0005932/0.3892, allocations: 191.8 kB / 425.1 MB, free: 41.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000342/0.3895, allocations: 385.8 kB / 425.4 MB, free: 41.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008456/0.3904, allocations: 0.704 MB / 426.2 MB, free: 41.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.3905, allocations: 116.4 kB / 426.3 MB, free: 41.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.3906, allocations: 111.8 kB / 426.4 MB, free: 41.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.975e-05/0.3906, allocations: 18.31 kB / 426.4 MB, free: 41.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.531e-05/0.3907, allocations: 27.61 kB / 426.4 MB, free: 41.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.358e-05/0.3908, allocations: 70.75 kB / 426.5 MB, free: 41.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.745e-05/0.3909, allocations: 79.39 kB / 426.6 MB, free: 41.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.3911, allocations: 266.9 kB / 426.8 MB, free: 41.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3912, allocations: 0 / 426.8 MB, free: 41.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3912, allocations: 7.828 kB / 426.8 MB, free: 41.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.3912, allocations: 0 / 426.8 MB, free: 41.39 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.0006617/0.3918, allocations: 0.5499 MB / 427.4 MB, free: 40.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.3919, allocations: 8.688 kB / 427.4 MB, free: 40.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.688e-05/0.392, allocations: 38.84 kB / 427.4 MB, free: 40.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003296/0.3923, allocations: 311.3 kB / 427.7 MB, free: 40.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.415e-05/0.3924, allocations: 29.31 kB / 427.8 MB, free: 40.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.271e-05/0.3924, allocations: 41.84 kB / 427.8 MB, free: 40.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006367/0.3931, allocations: 453.7 kB / 428.2 MB, free: 40.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.3931, allocations: 8.359 kB / 428.3 MB, free: 40.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.3931, allocations: 15.88 kB / 428.3 MB, free: 40.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.3931, allocations: 14.31 kB / 428.3 MB, free: 40.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004559/0.3936, allocations: 280.7 kB / 428.6 MB, free: 40.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001761/0.3954, allocations: 1.892 MB / 430.4 MB, free: 39.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.3957, allocations: 383.8 kB / 430.8 MB, free: 38.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.268e-05/0.3958, allocations: 66.53 kB / 430.9 MB, free: 38.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.076e-05/0.3959, allocations: 83.56 kB / 431 MB, free: 38.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002282/0.3961, allocations: 108.5 kB / 431.1 MB, free: 38.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.014e-06/0.3961, allocations: 0 / 431.1 MB, free: 38.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0003751/0.3965, allocations: 215.6 kB / 431.3 MB, free: 38.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/0.3966, allocations: 109.9 kB / 431.4 MB, free: 38.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.3968, allocations: 249.5 kB / 431.6 MB, free: 38.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.3968, allocations: 35.42 kB / 431.7 MB, free: 38.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.397, allocations: 193.9 kB / 431.9 MB, free: 38.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.909e-05/0.397, allocations: 62.52 kB / 431.9 MB, free: 38.29 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.144e-05/0.397, allocations: 5.375 kB / 431.9 MB, free: 38.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.787e-05/0.3971, allocations: 332.4 kB / 432.3 MB, free: 37.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.3972, allocations: 68.75 kB / 432.3 MB, free: 37.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.3974, allocations: 218.7 kB / 432.5 MB, free: 37.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001345/0.3975, allocations: 95.92 kB / 432.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.3975, allocations: 6.781 kB / 432.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004099/0.3979, allocations: 307.7 kB / 432.9 MB, free: 37.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.398, allocations: 10.69 kB / 432.9 MB, free: 37.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.398, allocations: 5.781 kB / 433 MB, free: 37.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.398, allocations: 5.875 kB / 433 MB, free: 37.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.3981, allocations: 30.66 kB / 433 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.942e-05/0.3982, allocations: 11.69 kB / 433 MB, free: 37.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/0.3984, allocations: 36.22 kB / 433 MB, free: 37.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.079e-05/0.3984, allocations: 14.62 kB / 433 MB, free: 37.68 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.0001926/0.3986, allocations: 210.5 kB / 433.3 MB, free: 37.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.608e-05/0.3986, allocations: 19.69 kB / 433.3 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002809/0.3989, allocations: 182.9 kB / 433.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3989, allocations: 2.875 kB / 433.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3989, allocations: 0 / 433.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3989, allocations: 0 / 433.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008297/0.3998, allocations: 0.6322 MB / 434.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.3998, allocations: 2.875 kB / 434.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.215e-05/0.3998, allocations: 6.969 kB / 434.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3998, allocations: 0 / 434.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.3999, allocations: 6.125 kB / 434.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.3999, allocations: 3 kB / 434.1 MB, free: 37.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.3999, allocations: 3.938 kB / 434.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002736/0.4002, allocations: 275 kB / 434.4 MB, free: 37.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.368e-05/0.4002, allocations: 105.5 kB / 434.5 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/0.4003, allocations: 5.969 kB / 434.5 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.4004, allocations: 11.89 kB / 434.5 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.138e-05/0.4005, allocations: 23.81 kB / 434.5 MB, free: 36.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.4005, allocations: 7.469 kB / 434.5 MB, free: 36.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001126/0.4006, allocations: 141.8 kB / 434.7 MB, free: 36.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4006, allocations: 0 / 434.7 MB, free: 36.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003707/0.401, allocations: 88.92 kB / 434.8 MB, free: 36.81 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.0001736/0.4012, allocations: 116.8 kB / 434.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003238/0.4015, allocations: 190.7 kB / 435.1 MB, free: 36.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4015, allocations: 0 / 435.1 MB, free: 36.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.4016, allocations: 84.58 kB / 435.1 MB, free: 36.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.402, allocations: 38.45 kB / 435.2 MB, free: 36.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007824/0.4027, allocations: 0.5493 MB / 435.7 MB, free: 36.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.403, allocations: 0.7885 MB / 436.5 MB, free: 35.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001173/0.4031, allocations: 47.09 kB / 436.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.016e-05/0.4032, allocations: 26.31 kB / 436.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4032, allocations: 0 / 436.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of Templates: time 0.005984/0.4092, allocations: 1.994 MB / 438.6 MB, free: 35.46 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: