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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 221.4 MB / 234.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008189/0.0008191, allocations: 101.8 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.07455/0.07455, allocations: 13.59 MB / 350.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.171e-05/3.175e-05, allocations: 11.98 kB / 411.6 MB, free: 55.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08639/0.08644, allocations: 53.7 MB / 465.3 MB, free: 2.016 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3207/0.4071, allocations: 76.94 MB / 0.5296 GB, free: 3.785 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001208/0.4073, allocations: 46.61 kB / 0.5296 GB, free: 3.766 MB / 346.7 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 FrontEnd - DAE generated: time 0.01173/0.419, allocations: 5.047 MB / 0.5345 GB, free: 15.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4191, allocations: 3.938 kB / 0.5345 GB, free: 15.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.107e-05/0.4191, allocations: 12 kB / 0.5346 GB, free: 15.45 MB / 362.7 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.0006437/0.4198, allocations: 0.5249 MB / 0.5351 GB, free: 14.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.4198, allocations: 8.031 kB / 0.5351 GB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.459e-05/0.4199, allocations: 47.52 kB / 0.5351 GB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004672/0.4204, allocations: 316.3 kB / 0.5354 GB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.797e-05/0.4204, allocations: 32.03 kB / 0.5354 GB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.091e-05/0.4205, allocations: 38.19 kB / 0.5355 GB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000651/0.4212, allocations: 460.2 kB / 0.5359 GB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.4212, allocations: 4 kB / 0.5359 GB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.8e-05/0.4212, allocations: 18.38 kB / 0.5359 GB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.4212, allocations: 15.98 kB / 0.536 GB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004222/0.4217, allocations: 265.6 kB / 0.5362 GB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.4235, allocations: 1.882 MB / 0.5381 GB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000334/0.4238, allocations: 386.6 kB / 0.5384 GB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.811e-05/0.4239, allocations: 57.23 kB / 0.5385 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.15e-05/0.424, allocations: 81.3 kB / 0.5386 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001729/0.4242, allocations: 111.5 kB / 0.5387 GB, free: 11.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 5.06e-06/0.4242, allocations: 4 kB / 0.5387 GB, free: 11.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003167/0.4245, allocations: 165.2 kB / 0.5388 GB, free: 11.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.443e-05/0.4246, allocations: 110.8 kB / 0.5389 GB, free: 11.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001983/0.4248, allocations: 229.7 kB / 0.5391 GB, free: 10.89 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.4248, allocations: 29.7 kB / 0.5392 GB, free: 10.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.425, allocations: 196.5 kB / 0.5394 GB, free: 10.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.067e-05/0.425, allocations: 51.41 kB / 0.5394 GB, free: 10.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.134e-05/0.425, allocations: 8 kB / 0.5394 GB, free: 10.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.4252, allocations: 334.8 kB / 0.5397 GB, free: 10.26 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.4253, allocations: 64.88 kB / 0.5398 GB, free: 10.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.4255, allocations: 223.7 kB / 0.54 GB, free: 9.914 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.4256, allocations: 91.92 kB / 0.5401 GB, free: 9.824 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.4256, allocations: 0 / 0.5401 GB, free: 9.824 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004108/0.4261, allocations: 310.1 kB / 0.5404 GB, free: 9.516 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.4261, allocations: 13.81 kB / 0.5404 GB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.4261, allocations: 4 kB / 0.5404 GB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.4261, allocations: 8 kB / 0.5404 GB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.903e-05/0.4262, allocations: 31.75 kB / 0.5405 GB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.279e-05/0.4263, allocations: 8 kB / 0.5405 GB, free: 9.453 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001641/0.4264, allocations: 23.98 kB / 0.5405 GB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.822e-05/0.4265, allocations: 16 kB / 0.5405 GB, free: 9.414 MB / 362.7 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,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,T2.condition,initialStep.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection) * Number of discrete 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.0001174/0.4266, allocations: 158 kB / 0.5406 GB, free: 9.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.848e-05/0.4266, allocations: 19.72 kB / 0.5407 GB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002981/0.4269, allocations: 182.6 kB / 0.5408 GB, free: 9.047 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.4269, allocations: 7.984 kB / 0.5408 GB, free: 9.039 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.4269, allocations: 3.953 kB / 0.5409 GB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.427, allocations: 0 / 0.5409 GB, free: 9.035 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007536/0.4277, allocations: 0.6234 MB / 0.5415 GB, free: 8.355 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4277, allocations: 0 / 0.5415 GB, free: 8.355 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.24e-05/0.4278, allocations: 7.938 kB / 0.5415 GB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.4278, allocations: 0 / 0.5415 GB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.4278, allocations: 4 kB / 0.5415 GB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.4278, allocations: 4 kB / 0.5415 GB, free: 8.34 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4278, allocations: 3.984 kB / 0.5415 GB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002526/0.4281, allocations: 267.8 kB / 0.5417 GB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.376e-05/0.4282, allocations: 108.8 kB / 0.5418 GB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.4282, allocations: 7.984 kB / 0.5418 GB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001233/0.4283, allocations: 11.98 kB / 0.5419 GB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.759e-05/0.4284, allocations: 27.83 kB / 0.5419 GB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.49e-05/0.4284, allocations: 8 kB / 0.5419 GB, free: 7.879 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001065/0.4285, allocations: 140.7 kB / 0.542 GB, free: 7.742 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4285, allocations: 0 / 0.542 GB, free: 7.742 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003108/0.4289, allocations: 52 kB / 0.5421 GB, free: 7.691 MB / 362.7 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) * 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.0001539/0.429, allocations: 117 kB / 0.5422 GB, free: 7.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002992/0.4293, allocations: 189.4 kB / 0.5424 GB, free: 7.387 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4293, allocations: 0 / 0.5424 GB, free: 7.387 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.4294, allocations: 71.88 kB / 0.5424 GB, free: 7.316 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001967/0.4296, allocations: 19.98 kB / 0.5425 GB, free: 7.297 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006286/0.4303, allocations: 355.1 kB / 0.5428 GB, free: 6.926 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003748/0.4307, allocations: 0.796 MB / 0.5436 GB, free: 6.105 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.4308, allocations: 42.95 kB / 0.5436 GB, free: 6.062 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.113e-05/0.4309, allocations: 19.44 kB / 0.5436 GB, free: 6.043 MB / 362.7 MB Notification: Performance of SimCode: time 1.984e-06/0.4309, allocations: 4 kB / 0.5436 GB, free: 6.039 MB / 362.7 MB Notification: Performance of Templates: time 0.005459/0.4363, allocations: 2.015 MB / 0.5456 GB, free: 4.035 MB / 362.7 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)