Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2") [: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 3.2.1+maint.om/package.mo): time 0.004038/0.004038, allocations: 187.1 kB / 7.456 MB, free: 2.238 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.263/1.263, allocations: 170.6 MB / 178.4 MB, free: 15.37 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001688/0.001688, allocations: 123.7 kB / 217.7 MB, free: 8.109 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.617e-06/8.637e-06, allocations: 0 / 261.7 MB, free: 26.63 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09493/0.09496, allocations: 38.77 MB / 300.5 MB, free: 3.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2835/0.3786, allocations: 65.37 MB / 365.9 MB, free: 3.039 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.3789, allocations: 64.53 kB / 365.9 MB, free: 3.008 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.00662/0.3855, allocations: 2.581 MB / 368.5 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.342e-05/0.3856, allocations: 8.875 kB / 368.5 MB, free: 0.8281 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0004249/0.386, allocations: 438.6 kB / 368.9 MB, free: 380 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.386, allocations: 8.031 kB / 369 MB, free: 372 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.856e-05/0.3861, allocations: 23.72 kB / 369 MB, free: 348 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002149/0.3863, allocations: 228 kB / 369.2 MB, free: 96 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.79e-05/0.3864, allocations: 12 kB / 369.2 MB, free: 84 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.314e-05/0.3864, allocations: 16 kB / 369.2 MB, free: 68 kB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002826/0.3867, allocations: 148.2 kB / 369.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003442/0.3871, allocations: 229.2 kB / 369.6 MB, free: 15.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.3871, allocations: 7.938 kB / 369.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.3871, allocations: 0 / 369.6 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.3871, allocations: 8 kB / 369.6 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009902/0.3881, allocations: 0.8844 MB / 370.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002153/0.3883, allocations: 125.2 kB / 370.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.3885, allocations: 73.62 kB / 370.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.3885, allocations: 12.11 kB / 370.7 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000154/0.3887, allocations: 107.3 kB / 370.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.3887, allocations: 0 / 370.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.000272/0.3889, allocations: 138.8 kB / 370.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.389, allocations: 59.39 kB / 371 MB, free: 14.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.3891, allocations: 140.8 kB / 371.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.499e-05/0.3892, allocations: 25.7 kB / 371.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.888e-05/0.3892, allocations: 142.6 kB / 371.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.594e-05/0.3893, allocations: 60.92 kB / 371.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.238e-06/0.3893, allocations: 0 / 371.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3894, allocations: 326.1 kB / 371.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.294e-05/0.3895, allocations: 52.34 kB / 371.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.3897, allocations: 136.6 kB / 371.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001201/0.3898, allocations: 52.03 kB / 371.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.3898, allocations: 4 kB / 371.9 MB, free: 13.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003072/0.3901, allocations: 216.2 kB / 372.1 MB, free: 13.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.3901, allocations: 4 kB / 372.1 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.3902, allocations: 4 kB / 372.1 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.3902, allocations: 4 kB / 372.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.3903, allocations: 35.09 kB / 372.2 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.3904, allocations: 8.531 kB / 372.2 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.319e-05/0.3905, allocations: 12.28 kB / 372.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.188e-05/0.3905, allocations: 15.56 kB / 372.2 MB, free: 13.35 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001041/0.3906, allocations: 127.8 kB / 372.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.401e-05/0.3906, allocations: 15.89 kB / 372.4 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003211/0.391, allocations: 162.1 kB / 372.5 MB, free: 13.08 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.391, allocations: 7.984 kB / 372.5 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.391, allocations: 8 kB / 372.5 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.391, allocations: 0 / 372.5 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006218/0.3916, allocations: 0.5056 MB / 373 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3916, allocations: 0 / 373 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.678e-05/0.3917, allocations: 19.92 kB / 373.1 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3917, allocations: 3.938 kB / 373.1 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.3918, allocations: 11.5 kB / 373.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3918, allocations: 0 / 373.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3918, allocations: 0 / 373.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002631/0.392, allocations: 238.1 kB / 373.3 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.313e-05/0.3921, allocations: 88.92 kB / 373.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.844e-05/0.3921, allocations: 3.984 kB / 373.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.219e-05/0.3922, allocations: 7.938 kB / 373.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.573e-05/0.3923, allocations: 23.88 kB / 373.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.3923, allocations: 11.75 kB / 373.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.05e-05/0.3924, allocations: 92.03 kB / 373.5 MB, free: 12.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002791/0.3927, allocations: 32 kB / 373.6 MB, free: 12.06 MB / 266.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: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001559/0.3928, allocations: 122 kB / 373.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002443/0.3931, allocations: 158.8 kB / 373.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3931, allocations: 64 / 373.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.3932, allocations: 78.69 kB / 373.9 MB, free: 11.76 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001984/0.3934, allocations: 26.25 kB / 373.9 MB, free: 11.74 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004792/0.3939, allocations: 222.7 kB / 374.2 MB, free: 11.53 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003819/0.3943, allocations: 0.7735 MB / 374.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3943, allocations: 0 / 374.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of Templates: time 0.005038/0.3994, allocations: 1.856 MB / 376.8 MB, free: 8.883 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1)