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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003315/0.003315, allocations: 181.1 kB / 7.457 MB, free: 2.188 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.197/1.197, allocations: 221.4 MB / 229.3 MB, free: 3.059 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.000934/0.000934, allocations: 102.8 kB / 280.1 MB, free: 1.32 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.06595/0.06595, allocations: 13.57 MB / 344.5 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.071e-06/6.112e-06, allocations: 0 / 404.2 MB, free: 61.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08192/0.08194, allocations: 53.71 MB / 457.9 MB, free: 8.066 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2414/0.3234, allocations: 76.48 MB / 0.5219 GB, free: 6.422 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001722/0.3237, allocations: 51.17 kB / 0.5219 GB, free: 6.402 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: time 0.01333/0.337, allocations: 4.688 MB / 0.5265 GB, free: 2.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.339e-05/0.3371, allocations: 15.28 kB / 0.5265 GB, free: 2.559 MB / 346.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.0009135/0.3381, allocations: 0.524 MB / 0.527 GB, free: 2.008 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/0.3381, allocations: 8.031 kB / 0.527 GB, free: 2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.3382, allocations: 43.44 kB / 0.5271 GB, free: 1.957 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005679/0.3388, allocations: 325.4 kB / 0.5274 GB, free: 1.637 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.516e-05/0.3389, allocations: 19.98 kB / 0.5274 GB, free: 1.617 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.127e-05/0.3389, allocations: 20 kB / 0.5274 GB, free: 1.598 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000521/0.3395, allocations: 250.8 kB / 0.5276 GB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006626/0.3401, allocations: 408.8 kB / 0.528 GB, free: 1.086 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.3402, allocations: 0 / 0.528 GB, free: 1.086 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.708e-05/0.3402, allocations: 4 kB / 0.528 GB, free: 1.082 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.3402, allocations: 8 kB / 0.5281 GB, free: 1.074 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00206/0.3423, allocations: 1.789 MB / 0.5298 GB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003098/0.3426, allocations: 362.9 kB / 0.5301 GB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.999e-05/0.3427, allocations: 57.84 kB / 0.5302 GB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.616e-05/0.3428, allocations: 81.3 kB / 0.5303 GB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001519/0.343, allocations: 107.7 kB / 0.5304 GB, free: 14.71 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.673e-06/0.343, allocations: 0 / 0.5304 GB, free: 14.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003634/0.3433, allocations: 139 kB / 0.5305 GB, free: 14.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.423e-05/0.3434, allocations: 114.7 kB / 0.5306 GB, free: 14.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.3436, allocations: 219 kB / 0.5308 GB, free: 14.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.4e-05/0.3437, allocations: 37 kB / 0.5309 GB, free: 14.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.3438, allocations: 175.8 kB / 0.531 GB, free: 14.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.949e-05/0.3439, allocations: 44.98 kB / 0.5311 GB, free: 14.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.746e-06/0.3439, allocations: 4 kB / 0.5311 GB, free: 14.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.344, allocations: 336.9 kB / 0.5314 GB, free: 13.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.063e-05/0.3441, allocations: 53.81 kB / 0.5315 GB, free: 13.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.3443, allocations: 201.1 kB / 0.5316 GB, free: 13.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.3445, allocations: 91.05 kB / 0.5317 GB, free: 13.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.3445, allocations: 11.94 kB / 0.5317 GB, free: 13.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004151/0.3449, allocations: 260.7 kB / 0.532 GB, free: 13.15 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.345, allocations: 4 kB / 0.532 GB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.345, allocations: 11.94 kB / 0.532 GB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.345, allocations: 8 kB / 0.532 GB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.57e-05/0.3451, allocations: 27.48 kB / 0.532 GB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.3451, allocations: 7.938 kB / 0.532 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001854/0.3453, allocations: 15.98 kB / 0.5321 GB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.594e-05/0.3453, allocations: 14.94 kB / 0.5321 GB, free: 13.07 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.0001317/0.3455, allocations: 145.2 kB / 0.5322 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.222e-05/0.3455, allocations: 23.72 kB / 0.5322 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002942/0.3458, allocations: 156.8 kB / 0.5324 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.3458, allocations: 0 / 0.5324 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.3458, allocations: 7.906 kB / 0.5324 GB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.3459, allocations: 7.984 kB / 0.5324 GB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006289/0.3465, allocations: 0.5256 MB / 0.5329 GB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3465, allocations: 3.938 kB / 0.5329 GB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.149e-05/0.3465, allocations: 7.938 kB / 0.5329 GB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3465, allocations: 0 / 0.5329 GB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.3466, allocations: 0 / 0.5329 GB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.3466, allocations: 8 kB / 0.5329 GB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3466, allocations: 0 / 0.5329 GB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002422/0.3468, allocations: 242.5 kB / 0.5332 GB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.475e-05/0.3469, allocations: 104.4 kB / 0.5333 GB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.526e-05/0.347, allocations: 4 kB / 0.5333 GB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.3471, allocations: 11.98 kB / 0.5333 GB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.248e-05/0.3472, allocations: 27.58 kB / 0.5333 GB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.3472, allocations: 7.938 kB / 0.5333 GB, free: 11.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.008e-05/0.3473, allocations: 134.4 kB / 0.5334 GB, free: 11.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003236/0.3476, allocations: 40 kB / 0.5335 GB, free: 11.71 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.0001678/0.3478, allocations: 108.8 kB / 0.5336 GB, free: 11.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002605/0.3481, allocations: 179.1 kB / 0.5338 GB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3481, allocations: 0 / 0.5338 GB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.3482, allocations: 62.31 kB / 0.5338 GB, free: 11.41 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000202/0.3484, allocations: 19.47 kB / 0.5338 GB, free: 11.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006426/0.349, allocations: 340.2 kB / 0.5342 GB, free: 11.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003476/0.3494, allocations: 0.8227 MB / 0.535 GB, free: 10.22 MB / 362.7 MB Notification: Performance of SimCode: time 3.1e-07/0.3494, allocations: 0 / 0.535 GB, free: 10.22 MB / 362.7 MB Notification: Performance of Templates: time 0.005565/0.355, allocations: 2.342 MB / 0.5372 GB, free: 7.902 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)