Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem") [: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.2+maint.om/package.mo): time 0.003824/0.003825, allocations: 181 kB / 7.457 MB, free: 2.34 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 0.9976/0.9976, allocations: 194.2 MB / 202.1 MB, free: 8.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03206/0.03206, allocations: 7.922 MB / 254.9 MB, free: 1.746 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001511/0.001511, allocations: 125.1 kB / 301.5 MB, free: 3.324 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.01e-06/5.12e-06, allocations: 0 / 353.8 MB, free: 14.98 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1544, allocations: 46.19 MB / 399.9 MB, free: 70.24 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06529/0.2197, allocations: 73.88 MB / 473.8 MB, free: 13.52 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001225/0.2199, allocations: 51.92 kB / 473.9 MB, free: 13.47 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.0105/0.2304, allocations: 3.689 MB / 477.6 MB, free: 9.777 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.2304, allocations: 7.984 kB / 477.6 MB, free: 9.77 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007577/0.2312, allocations: 0.5317 MB / 478.1 MB, free: 9.188 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.2312, allocations: 9.25 kB / 478.1 MB, free: 9.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.381e-05/0.2313, allocations: 35.61 kB / 478.2 MB, free: 9.145 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002469/0.2315, allocations: 227.4 kB / 478.4 MB, free: 8.879 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.2316, allocations: 8 kB / 478.4 MB, free: 8.871 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.549e-05/0.2316, allocations: 16 kB / 478.4 MB, free: 8.855 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002395/0.2319, allocations: 128.8 kB / 478.5 MB, free: 8.73 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/0.2321, allocations: 162.4 kB / 478.7 MB, free: 8.566 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.2321, allocations: 0 / 478.7 MB, free: 8.566 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.939e-05/0.2322, allocations: 4 kB / 478.7 MB, free: 8.562 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.2322, allocations: 4 kB / 478.7 MB, free: 8.559 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001122/0.2333, allocations: 0.7211 MB / 479.4 MB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002368/0.2336, allocations: 105.8 kB / 479.5 MB, free: 7.676 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001251/0.2337, allocations: 76.86 kB / 479.6 MB, free: 7.598 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.2337, allocations: 7.906 kB / 479.6 MB, free: 7.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001656/0.2339, allocations: 120.6 kB / 479.7 MB, free: 7.461 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 1.413e-06/0.2339, allocations: 0 / 479.7 MB, free: 7.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.001133/0.235, allocations: 0.8168 MB / 480.5 MB, free: 6.555 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.2351, allocations: 59.31 kB / 480.6 MB, free: 6.484 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/0.2352, allocations: 141.4 kB / 480.7 MB, free: 6.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.941e-05/0.2352, allocations: 29.69 kB / 480.8 MB, free: 6.305 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.504e-05/0.2353, allocations: 128.5 kB / 480.9 MB, free: 6.176 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.734e-05/0.2354, allocations: 94.56 kB / 481 MB, free: 6.082 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.035e-05/0.2354, allocations: 0 / 481 MB, free: 6.082 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.2355, allocations: 330.7 kB / 481.3 MB, free: 5.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.2356, allocations: 60 kB / 481.4 MB, free: 5.691 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.2357, allocations: 77.7 kB / 481.4 MB, free: 5.609 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000115/0.2359, allocations: 68.47 kB / 481.5 MB, free: 5.539 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/0.2359, allocations: 0 / 481.5 MB, free: 5.539 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003175/0.2362, allocations: 218.3 kB / 481.7 MB, free: 5.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.2362, allocations: 11.98 kB / 481.7 MB, free: 5.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.2362, allocations: 3.938 kB / 481.7 MB, free: 5.305 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.307e-06/0.2362, allocations: 0 / 481.7 MB, free: 5.305 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003272/0.2366, allocations: 87.83 kB / 481.8 MB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.2366, allocations: 4 kB / 481.8 MB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.2368, allocations: 31.97 kB / 481.9 MB, free: 5.184 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.2368, allocations: 4 kB / 481.9 MB, free: 5.18 MB / 330.7 MB Warning: Assuming fixed start value for the following 4 variables: damper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real damper.phi_rel:VARIABLE(start = 0.0 unit = "rad" nominal = if damper.phi_nominal >= 1e-15 then damper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real springDamper.w_rel:VARIABLE(start = 0.0 unit = "rad/s" stateSelect=StateSelect.prefer ) "Relative angular velocity (= der(phi_rel))" type: Real springDamper.phi_rel:VARIABLE(start = 0.0 unit = "rad" nominal = if springDamper.phi_nominal >= 1e-15 then springDamper.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) "Relative rotation angle (= flange_b.phi - flange_a.phi)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * 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.0001655/0.237, allocations: 128 kB / 482 MB, free: 5.047 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.934e-05/0.237, allocations: 19.72 kB / 482 MB, free: 5.027 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.689e-05/0.2371, allocations: 22.64 kB / 482 MB, free: 5.008 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.2371, allocations: 8 kB / 482 MB, free: 5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2371, allocations: 0 / 482 MB, free: 5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2371, allocations: 0 / 482 MB, free: 5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006989/0.2378, allocations: 0.5945 MB / 482.6 MB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.2378, allocations: 0 / 482.6 MB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003412/0.2382, allocations: 79.89 kB / 482.7 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.2382, allocations: 8.047 kB / 482.7 MB, free: 4.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.2382, allocations: 4 kB / 482.7 MB, free: 4.266 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2382, allocations: 0 / 482.7 MB, free: 4.266 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.2382, allocations: 4 kB / 482.7 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004664/0.2387, allocations: 430.1 kB / 483.1 MB, free: 3.809 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.205e-05/0.2388, allocations: 88.92 kB / 483.2 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.2388, allocations: 0 / 483.2 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/0.2391, allocations: 31.97 kB / 483.3 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.701e-05/0.2391, allocations: 31.89 kB / 483.3 MB, free: 3.641 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.467e-05/0.2391, allocations: 8 kB / 483.3 MB, free: 3.633 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.347e-05/0.2392, allocations: 115.2 kB / 483.4 MB, free: 3.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002788/0.2395, allocations: 55.91 kB / 483.5 MB, free: 3.465 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (springDamper.phi_rel,springDamper.w_rel,damper.phi_rel,damper.w_rel) * Number of discrete variables: 3 ($whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001073/0.2396, allocations: 100.8 kB / 483.6 MB, free: 3.359 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002884/0.2399, allocations: 197.8 kB / 483.8 MB, free: 3.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.2399, allocations: 4.062 kB / 483.8 MB, free: 3.156 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001555/0.2401, allocations: 99.92 kB / 483.9 MB, free: 3.059 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.2404, allocations: 27.98 kB / 483.9 MB, free: 3.031 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.2414, allocations: 0.5759 MB / 484.5 MB, free: 2.418 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003708/0.2418, allocations: 0.7746 MB / 485.2 MB, free: 1.617 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2418, allocations: 0 / 485.2 MB, free: 1.617 MB / 330.7 MB Notification: Performance of Templates: time 0.005314/0.2471, allocations: 2.68 MB / 487.9 MB, free: 14.96 MB / 346.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.makefile (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.sim & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem.pipe 2>&1)