Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.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_Variant4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4") translateModel(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 176.1 kB / 7.643 MB, free: 1.414 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.358/1.358, allocations: 221.5 MB / 229.6 MB, free: 7.555 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.001056/0.001056, allocations: 94.11 kB / 280.5 MB, free: 5.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.07643/0.07643, allocations: 13.58 MB / 344.8 MB, free: 1.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.312e-05/1.313e-05, allocations: 1.406 kB / 404.7 MB, free: 45.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1084, allocations: 53.73 MB / 458.5 MB, free: 11.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3803/0.4888, allocations: 76.71 MB / 0.5226 GB, free: 23.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001652/0.4891, allocations: 49.16 kB / 0.5227 GB, free: 23.49 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.01657/0.5056, allocations: 6.774 MB / 0.5293 GB, free: 22.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.5057, allocations: 0 / 0.5293 GB, free: 22.72 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.127e-05/0.5057, allocations: 26.36 kB / 0.5293 GB, free: 22.71 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.00074/0.5065, allocations: 0.62 MB / 0.5299 GB, free: 22.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.5065, allocations: 8.531 kB / 0.5299 GB, free: 22.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.5066, allocations: 65.69 kB / 0.53 GB, free: 22.24 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004847/0.5071, allocations: 363.8 kB / 0.5303 GB, free: 22.01 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.426e-05/0.5072, allocations: 20.31 kB / 0.5304 GB, free: 22.01 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.862e-05/0.5073, allocations: 45.58 kB / 0.5304 GB, free: 22 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006903/0.508, allocations: 341.4 kB / 0.5307 GB, free: 22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008447/0.5088, allocations: 0.5643 MB / 0.5313 GB, free: 21.79 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.5088, allocations: 4.953 kB / 0.5313 GB, free: 21.78 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.157e-05/0.5089, allocations: 2.156 kB / 0.5313 GB, free: 21.78 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/0.5089, allocations: 14.19 kB / 0.5313 GB, free: 21.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00236/0.5113, allocations: 2.423 MB / 0.5337 GB, free: 20.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004122/0.5117, allocations: 447.6 kB / 0.5341 GB, free: 19.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/0.5119, allocations: 84.02 kB / 0.5342 GB, free: 19.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006679/0.5125, allocations: 0.8502 MB / 0.535 GB, free: 19.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001826/0.5127, allocations: 113.7 kB / 0.5351 GB, free: 19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.703e-06/0.5127, allocations: 0 / 0.5351 GB, free: 19 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.000406/0.5132, allocations: 193.1 kB / 0.5353 GB, free: 18.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.5132, allocations: 60.28 kB / 0.5354 GB, free: 18.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002955/0.5135, allocations: 271.4 kB / 0.5356 GB, free: 18.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.5135, allocations: 33.2 kB / 0.5356 GB, free: 18.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.5137, allocations: 257.7 kB / 0.5359 GB, free: 18.58 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.081e-05/0.5138, allocations: 59.53 kB / 0.5359 GB, free: 18.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.169e-05/0.5138, allocations: 0 / 0.5359 GB, free: 18.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.044e-05/0.5139, allocations: 342.1 kB / 0.5363 GB, free: 18.24 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.514, allocations: 73.73 kB / 0.5363 GB, free: 18.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000207/0.5142, allocations: 258.1 kB / 0.5366 GB, free: 18.01 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002087/0.5144, allocations: 107.5 kB / 0.5367 GB, free: 18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.5144, allocations: 5.312 kB / 0.5367 GB, free: 17.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005088/0.515, allocations: 351.2 kB / 0.537 GB, free: 17.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.515, allocations: 6.875 kB / 0.537 GB, free: 17.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.515, allocations: 6.875 kB / 0.537 GB, free: 17.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.404e-05/0.515, allocations: 9.625 kB / 0.5371 GB, free: 17.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.5152, allocations: 42.02 kB / 0.5371 GB, free: 17.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.577e-05/0.5152, allocations: 15.34 kB / 0.5371 GB, free: 17.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.5153, allocations: 13.89 kB / 0.5371 GB, free: 17.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.648e-05/0.5154, allocations: 23.12 kB / 0.5371 GB, free: 17.88 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.T4.enableFire,$PRE.step4.oldActive,step4.oldActive,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.activePort,T2.enableFire,T2.conditionPort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.activePort,T3.enableFire,$PRE.timer1.entryTime,timer1.entryTime,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,$PRE.timer2.entryTime,timer2.entryTime,step3.outPort[1].checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,step4.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection,T4.condition,T2.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0006988/0.5161, allocations: 151.1 kB / 0.5373 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.469e-05/0.5161, allocations: 35.34 kB / 0.5373 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003788/0.5165, allocations: 199.5 kB / 0.5375 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.5165, allocations: 2.75 kB / 0.5375 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.5165, allocations: 0 / 0.5375 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.5166, allocations: 3.109 kB / 0.5375 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008028/0.5174, allocations: 0.6086 MB / 0.5381 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.5174, allocations: 0 / 0.5381 GB, free: 33.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.64e-05/0.5174, allocations: 16.36 kB / 0.5381 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.5174, allocations: 1.844 kB / 0.5381 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.5175, allocations: 8.312 kB / 0.5381 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.5175, allocations: 1.75 kB / 0.5381 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5175, allocations: 0 / 0.5381 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003303/0.5178, allocations: 287.6 kB / 0.5384 GB, free: 33.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.076e-05/0.5179, allocations: 121 kB / 0.5385 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.401e-05/0.518, allocations: 2.188 kB / 0.5385 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.5181, allocations: 6.188 kB / 0.5385 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.176e-05/0.5182, allocations: 28.3 kB / 0.5386 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.5182, allocations: 6.438 kB / 0.5386 GB, free: 33.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001608/0.5184, allocations: 160.6 kB / 0.5387 GB, free: 33.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5184, allocations: 0 / 0.5387 GB, free: 33.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003718/0.5187, allocations: 54.28 kB / 0.5388 GB, free: 33.05 MB / 378.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: 27 (initialStep.inport_fire,step3.activePort,step2.activePort,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.enableFire,T2.conditionPort,step3.newActive,step3.oldActive,step3.inport_fire,T3.enableFire,timer1.entryTime,step4.newActive,step4.oldActive,step4.inport_fire,step4.outport_fire,T4.enableFire,T4.conditionPort,timer2.entryTime) * Number of discrete states: 4 (initialStep.newActive,step2.newActive,step3.newActive,step4.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001797/0.5189, allocations: 128.6 kB / 0.5389 GB, free: 32.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003787/0.5193, allocations: 218.1 kB / 0.5391 GB, free: 32.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5193, allocations: 0 / 0.5391 GB, free: 32.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.5195, allocations: 84.17 kB / 0.5392 GB, free: 32.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002388/0.5197, allocations: 29.42 kB / 0.5392 GB, free: 32.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009532/0.5207, allocations: 458.8 kB / 0.5397 GB, free: 32.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006104/0.5213, allocations: 0.8442 MB / 0.5405 GB, free: 32.01 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.5215, allocations: 52.94 kB / 0.5405 GB, free: 32 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.559e-05/0.5215, allocations: 32.47 kB / 0.5406 GB, free: 32 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5215, allocations: 0 / 0.5406 GB, free: 32 MB / 378.7 MB Notification: Performance of Templates: time 0.006437/0.528, allocations: 2.106 MB / 0.5426 GB, free: 31.8 MB / 378.7 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant4.pipe 2>&1)