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: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",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.001979/0.001979, allocations: 187.1 kB / 7.465 MB, free: 2.5 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.937/0.937, allocations: 194.2 MB / 202.1 MB, free: 8.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0324/0.0324, allocations: 7.92 MB / 254.9 MB, free: 1.711 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.001523/0.001523, allocations: 121.1 kB / 301.5 MB, free: 3.316 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08706/0.08861, allocations: 52.32 MB / 353.9 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.2533, allocations: 46.19 MB / 400 MB, free: 70.26 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06581/0.3192, allocations: 71.14 MB / 471.2 MB, free: 236 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001304/0.3194, allocations: 47.98 kB / 471.2 MB, free: 188 kB / 314.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.005838/0.3252, allocations: 2.527 MB / 473.8 MB, free: 13.61 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.3253, allocations: 8 kB / 473.8 MB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.033e-05/0.3253, allocations: 15.81 kB / 473.8 MB, free: 13.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.3254, allocations: 182.8 kB / 474 MB, free: 13.37 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.512e-05/0.3255, allocations: 11.91 kB / 474 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.315e-05/0.3255, allocations: 12 kB / 474 MB, free: 13.35 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001799/0.3257, allocations: 87.98 kB / 474.1 MB, free: 13.26 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.3259, allocations: 124.9 kB / 474.2 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.3259, allocations: 0 / 474.2 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.3259, allocations: 3.938 kB / 474.2 MB, free: 13.13 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.3259, allocations: 4 kB / 474.2 MB, free: 13.13 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000852/0.3268, allocations: 0.6562 MB / 474.9 MB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001845/0.327, allocations: 73.7 kB / 474.9 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002005/0.3272, allocations: 96.83 kB / 475 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.282e-05/0.3272, allocations: 0 / 475 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.3272, allocations: 42.5 kB / 475.1 MB, free: 12.19 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 9.62e-07/0.3272, allocations: 0 / 475.1 MB, free: 12.19 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006582/0.3279, allocations: 405.7 kB / 475.5 MB, free: 11.74 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.328, allocations: 59.41 kB / 475.5 MB, free: 11.67 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.161e-05/0.328, allocations: 111.6 kB / 475.6 MB, free: 11.56 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.3281, allocations: 25.7 kB / 475.7 MB, free: 11.53 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.771e-05/0.3281, allocations: 132 kB / 475.8 MB, free: 11.39 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.724e-05/0.3282, allocations: 55.11 kB / 475.8 MB, free: 11.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.051e-06/0.3282, allocations: 0 / 475.8 MB, free: 11.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.626e-05/0.3283, allocations: 322.8 kB / 476.2 MB, free: 11.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.137e-05/0.3283, allocations: 36 kB / 476.2 MB, free: 10.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.726e-05/0.3284, allocations: 86.41 kB / 476.3 MB, free: 10.88 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.272e-05/0.3285, allocations: 47.92 kB / 476.3 MB, free: 10.83 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.61e-07/0.3285, allocations: 4 kB / 476.3 MB, free: 10.83 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002149/0.3288, allocations: 153.5 kB / 476.5 MB, free: 10.67 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.3288, allocations: 8 kB / 476.5 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3288, allocations: 7.906 kB / 476.5 MB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.3288, allocations: 4 kB / 476.5 MB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001768/0.329, allocations: 47.91 kB / 476.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.329, allocations: 4 kB / 476.5 MB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.377e-05/0.3291, allocations: 0 / 476.5 MB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.283e-05/0.3291, allocations: 12 kB / 476.6 MB, free: 10.59 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 7.176e-05/0.3292, allocations: 116.8 kB / 476.7 MB, free: 10.47 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.271e-05/0.3292, allocations: 7.906 kB / 476.7 MB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.185e-05/0.3292, allocations: 16.47 kB / 476.7 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.3293, allocations: 4 kB / 476.7 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3293, allocations: 0 / 476.7 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3293, allocations: 3.984 kB / 476.7 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005578/0.3298, allocations: 443.1 kB / 477.1 MB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3299, allocations: 0 / 477.1 MB, free: 9.965 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001928/0.3301, allocations: 35.97 kB / 477.2 MB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.3301, allocations: 0 / 477.2 MB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.3301, allocations: 4 kB / 477.2 MB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3301, allocations: 0 / 477.2 MB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3301, allocations: 0 / 477.2 MB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002687/0.3304, allocations: 270.9 kB / 477.4 MB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003861/0.3308, allocations: 0.683 MB / 478.1 MB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.327e-05/0.3308, allocations: 81.02 kB / 478.2 MB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.3308, allocations: 7.906 kB / 478.2 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.257e-05/0.3309, allocations: 0 / 478.2 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.045e-05/0.3309, allocations: 7.984 kB / 478.2 MB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.331, allocations: 8 kB / 478.2 MB, free: 8.828 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.431e-05/0.331, allocations: 95.59 kB / 478.3 MB, free: 8.734 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007804/0.3318, allocations: 36 kB / 478.4 MB, free: 8.699 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.0001256/0.3319, allocations: 103.2 kB / 478.5 MB, free: 8.586 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001839/0.3321, allocations: 104.1 kB / 478.6 MB, free: 8.484 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3321, allocations: 0 / 478.6 MB, free: 8.484 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.127e-05/0.3322, allocations: 52.25 kB / 478.6 MB, free: 8.434 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001454/0.3323, allocations: 8 kB / 478.6 MB, free: 8.426 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008289/0.3332, allocations: 447.5 kB / 479.1 MB, free: 7.957 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002973/0.3335, allocations: 0.7466 MB / 479.8 MB, free: 7.188 MB / 330.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3335, allocations: 0 / 479.8 MB, free: 7.188 MB / 330.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1)