Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.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: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter",fmuType="me",version="2.0",platforms={"static"}) [: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.00255/0.00255, allocations: 182.5 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.9578/0.9578, allocations: 194.2 MB / 202.1 MB, free: 8.723 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03269/0.03269, allocations: 7.919 MB / 254.9 MB, free: 1.648 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.001526/0.001526, allocations: 129.1 kB / 301.5 MB, free: 3.227 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08057/0.08212, allocations: 52.31 MB / 353.9 MB, free: 14.8 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.2497, allocations: 46.2 MB / 400.1 MB, free: 70.21 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06519/0.3149, allocations: 71.88 MB / 471.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001286/0.3151, allocations: 59.97 kB / 472 MB, free: 15.26 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.007295/0.3224, allocations: 3.029 MB / 475 MB, free: 12.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.3224, allocations: 13 kB / 475 MB, free: 12.17 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.558e-05/0.3225, allocations: 27.66 kB / 475.1 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.3227, allocations: 183.1 kB / 475.2 MB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.3227, allocations: 7.906 kB / 475.2 MB, free: 11.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.904e-05/0.3227, allocations: 23.98 kB / 475.3 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001907/0.3229, allocations: 92.8 kB / 475.4 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002313/0.3232, allocations: 149.7 kB / 475.5 MB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.3232, allocations: 0 / 475.5 MB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.061e-05/0.3232, allocations: 4 kB / 475.5 MB, free: 11.65 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.3232, allocations: 4 kB / 475.5 MB, free: 11.64 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.3243, allocations: 0.6857 MB / 476.2 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00012/0.3244, allocations: 92.33 kB / 476.3 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002137/0.3246, allocations: 112.8 kB / 476.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.107e-05/0.3246, allocations: 3.828 kB / 476.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/0.3248, allocations: 164.3 kB / 476.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.503e-06/0.3248, allocations: 0 / 476.6 MB, free: 10.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008082/0.3256, allocations: 0.5221 MB / 477.1 MB, free: 9.945 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.437e-05/0.3257, allocations: 140.7 kB / 477.2 MB, free: 9.777 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.532e-05/0.3258, allocations: 120.9 kB / 477.3 MB, free: 9.652 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.3258, allocations: 25.7 kB / 477.4 MB, free: 9.621 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.729e-05/0.3259, allocations: 136.1 kB / 477.5 MB, free: 9.484 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.896e-05/0.3259, allocations: 78.91 kB / 477.6 MB, free: 9.406 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.927e-06/0.3259, allocations: 0 / 477.6 MB, free: 9.406 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.482e-05/0.326, allocations: 334.8 kB / 477.9 MB, free: 9.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.061e-05/0.3261, allocations: 48 kB / 478 MB, free: 9.023 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.3262, allocations: 111.7 kB / 478.1 MB, free: 8.887 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001175/0.3264, allocations: 76.84 kB / 478.1 MB, free: 8.809 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.3264, allocations: 0 / 478.1 MB, free: 8.809 MB / 330.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002894/0.3267, allocations: 213.2 kB / 478.3 MB, free: 8.598 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.3267, allocations: 7.984 kB / 478.4 MB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.3267, allocations: 8.25 kB / 478.4 MB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.3267, allocations: 4 kB / 478.4 MB, free: 8.578 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.3269, allocations: 55.92 kB / 478.4 MB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.351e-06/0.3269, allocations: 7.984 kB / 478.4 MB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.25e-05/0.327, allocations: 11.91 kB / 478.4 MB, free: 8.504 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.3271, allocations: 8 kB / 478.4 MB, free: 8.496 MB / 330.7 MB Warning: Assuming fixed start value for the following 1 variables: pulseCounter.w:DISCRETE(fixed = false ) "Sensed speed" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.pulseCounter.w,pulseCounter.w,$PRE.pulseCounter.count,pulseCounter.count,$whenCondition2,$whenCondition1,$whenCondition3,$PRE.pulseCounter.next_phi,pulseCounter.next_phi,$PRE.pulseCounter.prev_phi,pulseCounter.prev_phi) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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.0001388/0.3272, allocations: 158.3 kB / 478.6 MB, free: 8.328 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.598e-05/0.3272, allocations: 19.81 kB / 478.6 MB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.589e-05/0.3273, allocations: 16.72 kB / 478.6 MB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.3273, allocations: 0 / 478.6 MB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3273, allocations: 0 / 478.6 MB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.3273, allocations: 4 kB / 478.6 MB, free: 8.289 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007016/0.328, allocations: 0.575 MB / 479.2 MB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.328, allocations: 0 / 479.2 MB, free: 7.664 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001991/0.3282, allocations: 43.91 kB / 479.3 MB, free: 7.621 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.3282, allocations: 3.938 kB / 479.3 MB, free: 7.617 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/0.3283, allocations: 8 kB / 479.3 MB, free: 7.609 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.3283, allocations: 8.062 kB / 479.3 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3283, allocations: 0 / 479.3 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003818/0.3287, allocations: 380.2 kB / 479.6 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000535/0.3292, allocations: 0.8222 MB / 480.5 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.924e-05/0.3293, allocations: 93.22 kB / 480.6 MB, free: 6.227 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/0.3293, allocations: 8 kB / 480.6 MB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.3294, allocations: 8 kB / 480.6 MB, free: 6.211 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.971e-05/0.3295, allocations: 11.98 kB / 480.6 MB, free: 6.199 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.3295, allocations: 8 kB / 480.6 MB, free: 6.191 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.336e-05/0.3295, allocations: 98.78 kB / 480.7 MB, free: 6.098 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007999/0.3304, allocations: 44 kB / 480.7 MB, free: 6.055 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,idealSensor.flange.phi) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,$whenCondition3,pulseCounter.w,pulseCounter.next_phi,pulseCounter.prev_phi,pulseCounter.count) * Number of discrete states: 7 (pulseCounter.w,$whenCondition3,pulseCounter.count,pulseCounter.prev_phi,pulseCounter.next_phi,$whenCondition2,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.0001146/0.3305, allocations: 123 kB / 480.9 MB, free: 5.922 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002505/0.3307, allocations: 187.1 kB / 481 MB, free: 5.734 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.3307, allocations: 0 / 481 MB, free: 5.734 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000143/0.3309, allocations: 157.6 kB / 481.2 MB, free: 5.574 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001439/0.331, allocations: 8 kB / 481.2 MB, free: 5.566 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008526/0.3319, allocations: 0.5047 MB / 481.7 MB, free: 5.035 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002636/0.3322, allocations: 0.7558 MB / 482.5 MB, free: 4.25 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3322, allocations: 0 / 482.5 MB, free: 4.25 MB / 330.7 MB (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1)