Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") [: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.002043/0.002043, allocations: 185.7 kB / 7.458 MB, free: 2.512 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.9841/0.9841, allocations: 194.2 MB / 202.1 MB, free: 8.66 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03229/0.03229, allocations: 7.93 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.001545/0.001545, allocations: 121.1 kB / 301.5 MB, free: 3.363 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.599e-06/4.639e-06, allocations: 0 / 353.8 MB, free: 15.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1704/0.1704, allocations: 46.19 MB / 400 MB, free: 70.15 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06797/0.2384, allocations: 71.15 MB / 471.1 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001588/0.2386, allocations: 51.98 kB / 471.1 MB, free: 224 kB / 314.7 MB Notification: Performance of FrontEnd: time 0.00546/0.2441, allocations: 2.111 MB / 473.3 MB, free: 14.11 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.2441, allocations: 0 / 473.3 MB, free: 14.11 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0004319/0.2446, allocations: 418.1 kB / 473.7 MB, free: 13.65 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.2446, allocations: 8.031 kB / 473.7 MB, free: 13.64 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.296e-05/0.2447, allocations: 15.81 kB / 473.7 MB, free: 13.63 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.2448, allocations: 178.9 kB / 473.9 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.2448, allocations: 11.91 kB / 473.9 MB, free: 13.4 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.271e-05/0.2449, allocations: 8 kB / 473.9 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002043/0.2451, allocations: 91.92 kB / 474 MB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00022/0.2453, allocations: 124.9 kB / 474.1 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.2453, allocations: 3.938 kB / 474.1 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.666e-05/0.2454, allocations: 4 kB / 474.1 MB, free: 13.17 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.2454, allocations: 4 kB / 474.1 MB, free: 13.17 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009604/0.2463, allocations: 0.6562 MB / 474.8 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.2465, allocations: 69.7 kB / 474.8 MB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.2468, allocations: 96.84 kB / 474.9 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.25e-05/0.2468, allocations: 0 / 474.9 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.075e-05/0.2468, allocations: 30.56 kB / 475 MB, free: 12.25 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.022e-06/0.2468, allocations: 4 kB / 475 MB, free: 12.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007772/0.2476, allocations: 425.9 kB / 475.4 MB, free: 11.77 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/0.2477, allocations: 55.41 kB / 475.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.93e-05/0.2477, allocations: 101 kB / 475.5 MB, free: 11.6 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.2478, allocations: 29.64 kB / 475.6 MB, free: 11.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.615e-05/0.2478, allocations: 132 kB / 475.7 MB, free: 11.43 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.441e-05/0.2479, allocations: 63.16 kB / 475.7 MB, free: 11.37 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.194e-06/0.2479, allocations: 0 / 475.7 MB, free: 11.37 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.2481, allocations: 318.8 kB / 476.1 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.1e-05/0.2481, allocations: 32 kB / 476.1 MB, free: 11.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.2482, allocations: 84.89 kB / 476.2 MB, free: 10.92 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.2484, allocations: 55.94 kB / 476.2 MB, free: 10.87 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.2484, allocations: 0 / 476.2 MB, free: 10.87 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002555/0.2486, allocations: 157.4 kB / 476.4 MB, free: 10.71 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.2487, allocations: 4 kB / 476.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.2487, allocations: 7.906 kB / 476.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.2487, allocations: 160 / 476.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002234/0.2489, allocations: 47.98 kB / 476.4 MB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.2489, allocations: 3.938 kB / 476.4 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.143e-05/0.249, allocations: 11.98 kB / 476.5 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.249, allocations: 4 kB / 476.5 MB, free: 10.63 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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 8.742e-05/0.2491, allocations: 112.7 kB / 476.6 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.106e-05/0.2492, allocations: 11.91 kB / 476.6 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.378e-05/0.2492, allocations: 12.47 kB / 476.6 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2492, allocations: 4 kB / 476.6 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2492, allocations: 4 kB / 476.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.2493, allocations: 0 / 476.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006705/0.2499, allocations: 442.5 kB / 477 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.25, allocations: 0 / 477 MB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002315/0.2502, allocations: 43.92 kB / 477.1 MB, free: 9.969 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.2502, allocations: 4 kB / 477.1 MB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.2502, allocations: 0 / 477.1 MB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.2502, allocations: 7.984 kB / 477.1 MB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2502, allocations: 0 / 477.1 MB, free: 9.957 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003156/0.2506, allocations: 263.2 kB / 477.3 MB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.578e-05/0.2506, allocations: 88.86 kB / 477.4 MB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.2507, allocations: 4 kB / 477.4 MB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.866e-05/0.2508, allocations: 0 / 477.4 MB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.069e-05/0.2508, allocations: 15.92 kB / 477.5 MB, free: 9.559 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.2508, allocations: 8 kB / 477.5 MB, free: 9.551 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.173e-05/0.2509, allocations: 87.7 kB / 477.5 MB, free: 9.465 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002938/0.2512, allocations: 32 kB / 477.6 MB, free: 9.434 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,idealSensor.flange.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 0.0001161/0.2513, allocations: 95.25 kB / 477.7 MB, free: 9.328 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002005/0.2515, allocations: 103.5 kB / 477.8 MB, free: 9.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2515, allocations: 0 / 477.8 MB, free: 9.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.257e-05/0.2516, allocations: 60.23 kB / 477.8 MB, free: 9.172 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000157/0.2518, allocations: 4 kB / 477.8 MB, free: 9.168 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009227/0.2527, allocations: 435.4 kB / 478.3 MB, free: 8.711 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003504/0.253, allocations: 0.7388 MB / 479 MB, free: 7.949 MB / 330.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2531, allocations: 0 / 479 MB, free: 7.949 MB / 330.7 MB Notification: Performance of Templates: time 0.003028/0.2561, allocations: 0.9874 MB / 480 MB, free: 6.961 MB / 330.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.makefile (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1)