Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.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_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") translateModel(ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1") [: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.002023/0.002023, allocations: 184 kB / 7.46 MB, free: 2.168 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.9979/0.9979, 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.03323/0.03323, allocations: 7.928 MB / 254.9 MB, free: 1.77 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.00153/0.00153, allocations: 101.2 kB / 301.5 MB, free: 3.383 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.531e-06/5.561e-06, allocations: 0 / 353.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.1608, allocations: 46.2 MB / 399.9 MB, free: 70.3 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.064/0.2249, allocations: 73.86 MB / 473.8 MB, free: 13.54 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001361/0.2251, allocations: 55.92 kB / 473.9 MB, free: 13.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01049/0.2356, allocations: 3.759 MB / 477.6 MB, free: 9.719 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.2356, allocations: 4 kB / 477.6 MB, free: 9.715 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.0007594/0.2364, allocations: 0.5324 MB / 478.2 MB, free: 9.133 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.318e-05/0.2364, allocations: 9.219 kB / 478.2 MB, free: 9.125 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.86e-05/0.2365, allocations: 35.56 kB / 478.2 MB, free: 9.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002515/0.2367, allocations: 243.1 kB / 478.4 MB, free: 8.812 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.2368, allocations: 4 kB / 478.4 MB, free: 8.809 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.193e-05/0.2368, allocations: 19.91 kB / 478.5 MB, free: 8.789 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002389/0.237, allocations: 124.8 kB / 478.6 MB, free: 8.668 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002487/0.2373, allocations: 154.4 kB / 478.7 MB, free: 8.512 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.2373, allocations: 12 kB / 478.8 MB, free: 8.5 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.2374, allocations: 0 / 478.8 MB, free: 8.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.2374, allocations: 4 kB / 478.8 MB, free: 8.496 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.2384, allocations: 0.6657 MB / 479.4 MB, free: 7.789 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002316/0.2387, allocations: 117.7 kB / 479.5 MB, free: 7.668 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.2388, allocations: 80.86 kB / 479.6 MB, free: 7.586 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.2388, allocations: 4 kB / 479.6 MB, free: 7.582 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001648/0.239, allocations: 125 kB / 479.7 MB, free: 7.449 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 1.563e-06/0.239, allocations: 0 / 479.7 MB, free: 7.449 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.001225/0.2402, allocations: 0.8692 MB / 480.6 MB, free: 6.488 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.2403, allocations: 55.41 kB / 480.7 MB, free: 6.422 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.2404, allocations: 149.3 kB / 480.8 MB, free: 6.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/0.2404, allocations: 29.7 kB / 480.8 MB, free: 6.234 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.087e-05/0.2405, allocations: 120.5 kB / 481 MB, free: 6.113 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.527e-05/0.2406, allocations: 106.5 kB / 481.1 MB, free: 6.008 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.2406, allocations: 4 kB / 481.1 MB, free: 6.004 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/0.2407, allocations: 330.8 kB / 481.4 MB, free: 5.672 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001074/0.2408, allocations: 64.33 kB / 481.5 MB, free: 5.605 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.241, allocations: 99.44 kB / 481.5 MB, free: 5.5 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000126/0.2411, allocations: 69.09 kB / 481.6 MB, free: 5.434 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.2411, allocations: 0 / 481.6 MB, free: 5.434 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003394/0.2414, allocations: 248.8 kB / 481.9 MB, free: 5.184 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.287e-06/0.2415, allocations: 7.938 kB / 481.9 MB, free: 5.176 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.2415, allocations: 0 / 481.9 MB, free: 5.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.2415, allocations: 4 kB / 481.9 MB, free: 5.172 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003183/0.2418, allocations: 87.94 kB / 482 MB, free: 5.086 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.2418, allocations: 7.891 kB / 482 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.242, allocations: 35.97 kB / 482 MB, free: 5.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.2421, allocations: 8 kB / 482 MB, free: 5.035 MB / 330.7 MB Warning: Assuming fixed start value for the following 4 variables: speedSensor.w:DISCRETE(fixed = false ) "Sensed speed" 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: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.speedSensor.w,speedSensor.w,$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 (39): * Single equations (assignments): 38 * 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.0001516/0.2422, allocations: 123.4 kB / 482.1 MB, free: 4.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.961e-05/0.2423, allocations: 23.72 kB / 482.1 MB, free: 4.887 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.48e-05/0.2423, allocations: 30.64 kB / 482.2 MB, free: 4.855 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2423, allocations: 4 kB / 482.2 MB, free: 4.852 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2423, allocations: 0 / 482.2 MB, free: 4.852 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2424, allocations: 0 / 482.2 MB, free: 4.852 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007548/0.2431, allocations: 0.6645 MB / 482.8 MB, free: 4.129 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2431, allocations: 0 / 482.8 MB, free: 4.129 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003652/0.2435, allocations: 75.89 kB / 482.9 MB, free: 4.055 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.2435, allocations: 8.062 kB / 482.9 MB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.2435, allocations: 4 kB / 482.9 MB, free: 4.043 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.2435, allocations: 4 kB / 482.9 MB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2436, allocations: 3.938 kB / 482.9 MB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004885/0.244, allocations: 445.9 kB / 483.4 MB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.838e-05/0.2441, allocations: 96.83 kB / 483.5 MB, free: 3.453 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.2441, allocations: 0 / 483.5 MB, free: 3.453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002405/0.2444, allocations: 35.97 kB / 483.5 MB, free: 3.418 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.987e-05/0.2445, allocations: 23.95 kB / 483.5 MB, free: 3.395 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.2445, allocations: 12 kB / 483.5 MB, free: 3.383 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.549e-05/0.2446, allocations: 115.3 kB / 483.7 MB, free: 3.27 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002727/0.2448, allocations: 52 kB / 483.7 MB, free: 3.219 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: 5 ($whenCondition2,$whenCondition1,speedSensor.w,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001125/0.245, allocations: 111.2 kB / 483.8 MB, free: 3.102 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003098/0.2453, allocations: 213.4 kB / 484 MB, free: 2.887 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.2453, allocations: 4.125 kB / 484 MB, free: 2.883 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.2454, allocations: 111.9 kB / 484.1 MB, free: 2.773 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.2457, allocations: 35.97 kB / 484.2 MB, free: 2.738 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009974/0.2467, allocations: 0.5829 MB / 484.8 MB, free: 2.125 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/0.2471, allocations: 0.7867 MB / 485.5 MB, free: 1.312 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2471, allocations: 0 / 485.5 MB, free: 1.312 MB / 330.7 MB Notification: Performance of Templates: time 0.005219/0.2523, allocations: 2.821 MB / 488.4 MB, free: 14.54 MB / 346.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.makefile (rm -f ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe >> ../files/ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.sim & ./ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Architectures.SensorComparison.Examples.FlatSystem_Variation1.pipe 2>&1)