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.0009151/0.0009149, allocations: 90.98 kB / 15.36 MB, free: 0.7383 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.007453/0.007453, allocations: 170.6 kB / 16.26 MB, free: 6.613 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.587/1.587, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.2832/0.2832, allocations: 13.56 MB / 305 MB, free: 1.438 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005397/0.0005397, allocations: 8 kB / 369.5 MB, free: 6.234 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1444, allocations: 53.7 MB / 423.2 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample): time 0.2614/0.4059, allocations: 1.489 MB / 424.7 MB, free: 41.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.4072, allocations: 0.8097 MB / 425.5 MB, free: 41.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.4073, allocations: 13.09 kB / 425.5 MB, free: 41.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002089/0.4075, allocations: 56.2 kB / 425.5 MB, free: 41.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.992e-05/0.4076, allocations: 14.81 kB / 425.5 MB, free: 41.84 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.0005786/0.4082, allocations: 212.7 kB / 425.8 MB, free: 41.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003621/0.4086, allocations: 407.4 kB / 426.2 MB, free: 41.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000852/0.4094, allocations: 0.7597 MB / 426.9 MB, free: 41.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.4095, allocations: 132.5 kB / 427 MB, free: 41.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.4097, allocations: 121.8 kB / 427.2 MB, free: 41.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.167e-05/0.4097, allocations: 13.16 kB / 427.2 MB, free: 41.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.043e-05/0.4098, allocations: 26.66 kB / 427.2 MB, free: 41.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.685e-05/0.4099, allocations: 74.09 kB / 427.3 MB, free: 41.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001023/0.41, allocations: 165 kB / 427.4 MB, free: 41.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002784/0.4103, allocations: 338.5 kB / 427.8 MB, free: 41.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.4103, allocations: 10.38 kB / 427.8 MB, free: 41.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4103, allocations: 4 kB / 427.8 MB, free: 41.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.4103, allocations: 0 / 427.8 MB, free: 41.33 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.0006308/0.411, allocations: 0.5463 MB / 428.3 MB, free: 40.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.411, allocations: 8.656 kB / 428.3 MB, free: 40.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.504e-05/0.4111, allocations: 43.73 kB / 428.4 MB, free: 40.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003068/0.4114, allocations: 319 kB / 428.7 MB, free: 40.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.944e-05/0.4114, allocations: 32.38 kB / 428.7 MB, free: 40.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.637e-05/0.4115, allocations: 42.55 kB / 428.8 MB, free: 40.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005853/0.4121, allocations: 456.5 kB / 429.2 MB, free: 40.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.4121, allocations: 6.781 kB / 429.2 MB, free: 40.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.826e-05/0.4122, allocations: 17.2 kB / 429.2 MB, free: 40.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.4122, allocations: 12.78 kB / 429.2 MB, free: 40.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004029/0.4126, allocations: 288.6 kB / 429.5 MB, free: 40.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.4141, allocations: 1.891 MB / 431.4 MB, free: 39.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002694/0.4143, allocations: 386 kB / 431.8 MB, free: 38.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.182e-05/0.4144, allocations: 65.91 kB / 431.9 MB, free: 38.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.707e-05/0.4145, allocations: 87.52 kB / 431.9 MB, free: 38.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001898/0.4147, allocations: 112.2 kB / 432.1 MB, free: 38.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.854e-06/0.4147, allocations: 0 / 432.1 MB, free: 38.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.000343/0.415, allocations: 218.6 kB / 432.3 MB, free: 38.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/0.4151, allocations: 113.7 kB / 432.4 MB, free: 38.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.4153, allocations: 254.3 kB / 432.6 MB, free: 38.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.4153, allocations: 34.86 kB / 432.7 MB, free: 38.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.431e-05/0.4154, allocations: 188.7 kB / 432.8 MB, free: 38.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.435e-05/0.4155, allocations: 56.77 kB / 432.9 MB, free: 38.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.705e-05/0.4155, allocations: 73.84 kB / 433 MB, free: 38.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.282e-05/0.4156, allocations: 334.3 kB / 433.3 MB, free: 37.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.818e-05/0.4157, allocations: 67.39 kB / 433.4 MB, free: 37.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.4159, allocations: 224.4 kB / 433.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002527/0.4161, allocations: 275.3 kB / 433.9 MB, free: 37.51 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.4161, allocations: 2.531 kB / 433.9 MB, free: 37.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004322/0.4166, allocations: 313.7 kB / 434.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.4166, allocations: 13 kB / 434.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.4166, allocations: 2.844 kB / 434.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.4166, allocations: 8.562 kB / 434.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.215e-05/0.4167, allocations: 28.75 kB / 434.2 MB, free: 37.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.4168, allocations: 5.344 kB / 434.2 MB, free: 37.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001703/0.4169, allocations: 34.72 kB / 434.3 MB, free: 37.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.489e-05/0.417, allocations: 16.94 kB / 434.3 MB, free: 37.41 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,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.0002003/0.4172, allocations: 213.8 kB / 434.5 MB, free: 37.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.614e-05/0.4172, allocations: 19.75 kB / 434.5 MB, free: 37.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002889/0.4175, allocations: 184.9 kB / 434.7 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.4175, allocations: 0 / 434.7 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.4175, allocations: 3.375 kB / 434.7 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.4175, allocations: 7.219 kB / 434.7 MB, free: 37.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006642/0.4182, allocations: 0.6301 MB / 435.3 MB, free: 36.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4182, allocations: 0 / 435.3 MB, free: 36.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.973e-05/0.4183, allocations: 10.09 kB / 435.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.4183, allocations: 10.69 kB / 435.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.4183, allocations: 0 / 435.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.4183, allocations: 3.188 kB / 435.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4183, allocations: 0 / 435.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002102/0.4185, allocations: 271.7 kB / 435.6 MB, free: 36.74 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.917e-05/0.4186, allocations: 104.6 kB / 435.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.182e-05/0.4186, allocations: 10.12 kB / 435.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.4187, allocations: 16.38 kB / 435.7 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.695e-05/0.4188, allocations: 19.75 kB / 435.8 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.4188, allocations: 13.44 kB / 435.8 MB, free: 36.63 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.619e-05/0.4189, allocations: 146.5 kB / 435.9 MB, free: 36.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4189, allocations: 0 / 435.9 MB, free: 36.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003405/0.4193, allocations: 83.03 kB / 436 MB, free: 36.53 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 (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.0001495/0.4194, allocations: 110.9 kB / 436.1 MB, free: 36.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002939/0.4197, allocations: 201.6 kB / 436.3 MB, free: 36.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4197, allocations: 0 / 436.3 MB, free: 36.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.822e-05/0.4198, allocations: 77.58 kB / 436.4 MB, free: 36.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/0.4201, allocations: 29.28 kB / 436.4 MB, free: 36.4 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006799/0.4208, allocations: 0.5858 MB / 437 MB, free: 36.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001966/0.421, allocations: 0.7875 MB / 437.8 MB, free: 35.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.556e-05/0.4211, allocations: 47.75 kB / 437.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.428e-05/0.4212, allocations: 23.75 kB / 437.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of SimCode: time 4.6e-07/0.4212, allocations: 0 / 437.8 MB, free: 35.32 MB / 350.1 MB Notification: Performance of Templates: time 0.005044/0.4262, allocations: 2.065 MB / 439.9 MB, free: 35.16 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: