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.0009297/0.0009297, allocations: 171 kB / 7.646 MB, free: 1.402 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 221.5 MB / 229.6 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009197/0.0009197, allocations: 93.8 kB / 280.5 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.08037/0.08037, allocations: 13.57 MB / 344.8 MB, free: 1.52 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.547e-05/1.548e-05, allocations: 3.453 kB / 404.7 MB, free: 45.7 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1156, allocations: 53.71 MB / 458.5 MB, free: 12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3557/0.4714, allocations: 76.28 MB / 0.5222 GB, free: 23.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001665/0.4716, allocations: 47.45 kB / 0.5222 GB, free: 23.07 MB / 362.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.01289/0.4845, allocations: 4.999 MB / 0.5271 GB, free: 22.44 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4845, allocations: 0 / 0.5271 GB, free: 22.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.58e-05/0.4846, allocations: 14.33 kB / 0.5271 GB, free: 22.44 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.001008/0.4856, allocations: 0.5291 MB / 0.5277 GB, free: 22.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.4857, allocations: 9.344 kB / 0.5277 GB, free: 22.03 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002089/0.4859, allocations: 41.16 kB / 0.5277 GB, free: 22.01 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005689/0.4865, allocations: 320.6 kB / 0.528 GB, free: 21.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.089e-05/0.4865, allocations: 13.25 kB / 0.528 GB, free: 21.78 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.273e-05/0.4866, allocations: 28.48 kB / 0.5281 GB, free: 21.78 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006247/0.4872, allocations: 242.7 kB / 0.5283 GB, free: 21.78 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007351/0.488, allocations: 398.5 kB / 0.5287 GB, free: 21.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.488, allocations: 0 / 0.5287 GB, free: 21.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.045e-05/0.488, allocations: 10.77 kB / 0.5287 GB, free: 21.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.4881, allocations: 13.44 kB / 0.5287 GB, free: 21.63 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.4901, allocations: 1.79 MB / 0.5304 GB, free: 20.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003142/0.4904, allocations: 369.7 kB / 0.5308 GB, free: 20.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.997e-05/0.4905, allocations: 55.25 kB / 0.5308 GB, free: 20.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.947e-05/0.4906, allocations: 82.59 kB / 0.5309 GB, free: 19.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00018/0.4908, allocations: 102.7 kB / 0.531 GB, free: 19.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.914e-06/0.4908, allocations: 0 / 0.531 GB, free: 19.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004329/0.4912, allocations: 156.7 kB / 0.5312 GB, free: 19.81 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.408e-05/0.4913, allocations: 109.3 kB / 0.5313 GB, free: 19.69 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002545/0.4916, allocations: 224.2 kB / 0.5315 GB, free: 19.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/0.4916, allocations: 34.38 kB / 0.5315 GB, free: 19.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.4918, allocations: 189 kB / 0.5317 GB, free: 19.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.731e-05/0.4918, allocations: 47.5 kB / 0.5317 GB, free: 19.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.658e-06/0.4918, allocations: 1.031 kB / 0.5317 GB, free: 19.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.963e-05/0.4919, allocations: 333.4 kB / 0.5321 GB, free: 19.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.4921, allocations: 58.09 kB / 0.5321 GB, free: 19.08 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.4922, allocations: 206.5 kB / 0.5323 GB, free: 18.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002001/0.4925, allocations: 85.92 kB / 0.5324 GB, free: 18.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.4925, allocations: 5.219 kB / 0.5324 GB, free: 18.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004802/0.493, allocations: 266.7 kB / 0.5327 GB, free: 18.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.493, allocations: 6.312 kB / 0.5327 GB, free: 18.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.493, allocations: 4.312 kB / 0.5327 GB, free: 18.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.493, allocations: 8.188 kB / 0.5327 GB, free: 18.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.971e-05/0.4931, allocations: 28.86 kB / 0.5327 GB, free: 18.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.455e-05/0.4932, allocations: 12.97 kB / 0.5327 GB, free: 18.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002027/0.4934, allocations: 19.95 kB / 0.5327 GB, free: 18.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.716e-05/0.4934, allocations: 17.75 kB / 0.5328 GB, free: 18.79 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.0001066/0.4935, allocations: 136.7 kB / 0.5329 GB, free: 18.67 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.4936, allocations: 21.44 kB / 0.5329 GB, free: 18.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00032/0.4939, allocations: 170.2 kB / 0.5331 GB, free: 18.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.4939, allocations: 5.625 kB / 0.5331 GB, free: 18.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.4939, allocations: 1.594 kB / 0.5331 GB, free: 18.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.4939, allocations: 5.969 kB / 0.5331 GB, free: 18.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007626/0.4947, allocations: 0.5278 MB / 0.5336 GB, free: 18.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.4947, allocations: 1.828 kB / 0.5336 GB, free: 18.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.355e-05/0.4947, allocations: 8.531 kB / 0.5336 GB, free: 18.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.4948, allocations: 5.141 kB / 0.5336 GB, free: 18.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.4948, allocations: 7.062 kB / 0.5336 GB, free: 18.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.4948, allocations: 1.125 kB / 0.5336 GB, free: 18.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.4948, allocations: 1.094 kB / 0.5336 GB, free: 18.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003036/0.4951, allocations: 257.8 kB / 0.5339 GB, free: 18.17 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.327e-05/0.4952, allocations: 103.7 kB / 0.534 GB, free: 18.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.17e-05/0.4953, allocations: 9.719 kB / 0.534 GB, free: 18.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.4954, allocations: 11.91 kB / 0.534 GB, free: 18.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.211e-05/0.4955, allocations: 22.88 kB / 0.534 GB, free: 18.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.4955, allocations: 9.047 kB / 0.534 GB, free: 18.05 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001119/0.4957, allocations: 138.4 kB / 0.5341 GB, free: 17.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4957, allocations: 0 / 0.5341 GB, free: 17.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003919/0.4961, allocations: 42 kB / 0.5342 GB, free: 17.98 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.0001635/0.4962, allocations: 113.3 kB / 0.5343 GB, free: 17.88 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003192/0.4966, allocations: 167.2 kB / 0.5345 GB, free: 17.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4966, allocations: 1.375 kB / 0.5345 GB, free: 17.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.4967, allocations: 62.62 kB / 0.5345 GB, free: 17.86 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002145/0.4969, allocations: 22.11 kB / 0.5345 GB, free: 17.85 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006749/0.4976, allocations: 331.5 kB / 0.5349 GB, free: 17.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009849/0.4986, allocations: 0.8069 MB / 0.5356 GB, free: 32.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001252/0.4987, allocations: 42.53 kB / 0.5357 GB, free: 32.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.223e-05/0.4988, allocations: 22.62 kB / 0.5357 GB, free: 32.98 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4988, allocations: 0 / 0.5357 GB, free: 32.98 MB / 378.7 MB Notification: Performance of Templates: time 0.00555/0.5043, allocations: 1.912 MB / 0.5376 GB, free: 32.82 MB / 378.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)