Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") [: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.002089/0.002089, allocations: 184.1 kB / 7.457 MB, free: 2.504 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.9504/0.9504, allocations: 194.2 MB / 202.1 MB, free: 9.145 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03257/0.03257, allocations: 7.928 MB / 254.9 MB, free: 1.676 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.001662/0.001662, allocations: 113.2 kB / 301.5 MB, free: 3.445 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.358e-06/4.368e-06, allocations: 0 / 353.7 MB, free: 15.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1673/0.1673, allocations: 46.2 MB / 399.9 MB, free: 70.28 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06754/0.2349, allocations: 71.31 MB / 471.3 MB, free: 140 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000113/0.235, allocations: 51.98 kB / 471.3 MB, free: 88 kB / 314.7 MB Notification: Performance of FrontEnd: time 0.006299/0.2414, allocations: 2.314 MB / 473.6 MB, free: 13.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.914e-06/0.2414, allocations: 4 kB / 473.6 MB, free: 13.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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0004783/0.2419, allocations: 430.8 kB / 474 MB, free: 13.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.2419, allocations: 9.031 kB / 474.1 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.697e-05/0.242, allocations: 19.81 kB / 474.1 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.2421, allocations: 183 kB / 474.3 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.2421, allocations: 8 kB / 474.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.697e-05/0.2422, allocations: 15.94 kB / 474.3 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002006/0.2424, allocations: 96.67 kB / 474.4 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002228/0.2426, allocations: 136.2 kB / 474.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.2426, allocations: 0 / 474.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.2427, allocations: 0 / 474.5 MB, free: 12.8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.2427, allocations: 4 kB / 474.5 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009638/0.2437, allocations: 0.6755 MB / 475.2 MB, free: 12.06 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.2438, allocations: 73.72 kB / 475.3 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.244, allocations: 96.83 kB / 475.4 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.244, allocations: 4 kB / 475.4 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00011/0.2441, allocations: 87.55 kB / 475.4 MB, free: 11.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 1.613e-06/0.2441, allocations: 0 / 475.4 MB, free: 11.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007415/0.2449, allocations: 438 kB / 475.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.2449, allocations: 55.41 kB / 475.9 MB, free: 11.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.203e-05/0.245, allocations: 109.2 kB / 476 MB, free: 11.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.2451, allocations: 25.7 kB / 476.1 MB, free: 11.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.691e-05/0.2451, allocations: 140 kB / 476.2 MB, free: 10.95 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.197e-05/0.2452, allocations: 63.05 kB / 476.3 MB, free: 10.88 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.987e-06/0.2452, allocations: 0 / 476.3 MB, free: 10.88 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.79e-05/0.2453, allocations: 333.3 kB / 476.6 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.556e-05/0.2454, allocations: 36 kB / 476.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.942e-05/0.2455, allocations: 103.5 kB / 476.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.388e-05/0.2456, allocations: 62.03 kB / 476.8 MB, free: 10.33 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.2456, allocations: 0 / 476.8 MB, free: 10.33 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002443/0.2458, allocations: 175.7 kB / 476.9 MB, free: 10.16 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.2459, allocations: 7.281 kB / 477 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.2459, allocations: 4 kB / 477 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.2459, allocations: 8.219 kB / 477 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002099/0.2461, allocations: 55.91 kB / 477 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.2461, allocations: 7.938 kB / 477 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.575e-05/0.2462, allocations: 0 / 477 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.2462, allocations: 8 kB / 477 MB, free: 10.07 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.sampleHold.w,sampleHold.w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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 7.571e-05/0.2463, allocations: 120.6 kB / 477.2 MB, free: 9.945 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.784e-05/0.2463, allocations: 7.906 kB / 477.2 MB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.288e-05/0.2464, allocations: 16.55 kB / 477.2 MB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.2464, allocations: 8 kB / 477.2 MB, free: 9.918 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.2464, allocations: 4 kB / 477.2 MB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-06/0.2464, allocations: 0 / 477.2 MB, free: 9.914 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005113/0.2469, allocations: 462.8 kB / 477.6 MB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2469, allocations: 0 / 477.6 MB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/0.2471, allocations: 31.98 kB / 477.7 MB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.2471, allocations: 11.91 kB / 477.7 MB, free: 9.375 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.2472, allocations: 7.922 kB / 477.7 MB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.2472, allocations: 0 / 477.7 MB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.2472, allocations: 0 / 477.7 MB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002831/0.2475, allocations: 279.2 kB / 478 MB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.643e-05/0.2475, allocations: 85.16 kB / 478 MB, free: 8.977 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.2476, allocations: 8 kB / 478.1 MB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.796e-05/0.2476, allocations: 0 / 478.1 MB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.538e-05/0.2477, allocations: 11.98 kB / 478.1 MB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.138e-06/0.2477, allocations: 4 kB / 478.1 MB, free: 8.953 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.603e-05/0.2477, allocations: 91.28 kB / 478.2 MB, free: 8.863 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002572/0.248, allocations: 32 kB / 478.2 MB, free: 8.832 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,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001078/0.2481, allocations: 107.1 kB / 478.3 MB, free: 8.715 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001914/0.2483, allocations: 115.9 kB / 478.4 MB, free: 8.602 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2483, allocations: 448 / 478.4 MB, free: 8.602 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.374e-05/0.2484, allocations: 63.92 kB / 478.5 MB, free: 8.539 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.2485, allocations: 0 / 478.5 MB, free: 8.539 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008475/0.2494, allocations: 456 kB / 478.9 MB, free: 8.062 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003176/0.2497, allocations: 0.7437 MB / 479.7 MB, free: 7.293 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2497, allocations: 0 / 479.7 MB, free: 7.293 MB / 330.7 MB Notification: Performance of Templates: time 0.003059/0.2528, allocations: 1.103 MB / 480.8 MB, free: 6.199 MB / 330.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1)