Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Velocity,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_Velocity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Velocity,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_Velocity",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/Buildings 10.0.0-master/package.mo): time 1.976/1.976, allocations: 390.4 MB / 397.7 MB, free: 11.24 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 177.3 kB / 490.8 MB, free: 1.957 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 221.3 MB / 0.7863 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 92.67 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.5323/0.5333, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2284/0.7617, allocations: 143 MB / 1.212 GB, free: 40.02 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.943/4.705, allocations: 1.906 GB / 3.118 GB, free: 429.8 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/4.705, allocations: 84.77 kB / 3.118 GB, free: 429.8 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.4894/5.195, allocations: 247.1 MB / 3.359 GB, free: 185.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.681e-05/5.195, allocations: 12 kB / 3.359 GB, free: 185.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001479/5.196, allocations: 167.3 kB / 3.36 GB, free: 185.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006877/5.197, allocations: 354.2 kB / 3.36 GB, free: 185 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/5.197, allocations: 4 kB / 3.36 GB, free: 185 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.03e-05/5.197, allocations: 20 kB / 3.36 GB, free: 185 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004246/5.197, allocations: 204.9 kB / 3.36 GB, free: 184.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003898/5.198, allocations: 262.4 kB / 3.36 GB, free: 184.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/5.198, allocations: 0 / 3.36 GB, free: 184.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.611e-05/5.198, allocations: 3.984 kB / 3.36 GB, free: 184.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/5.198, allocations: 8 kB / 3.36 GB, free: 184.5 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001456/5.199, allocations: 1.105 MB / 3.362 GB, free: 183.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003506/5.2, allocations: 235.1 kB / 3.362 GB, free: 183.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/5.2, allocations: 109.2 kB / 3.362 GB, free: 183 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005677/5.2, allocations: 473.6 kB / 3.362 GB, free: 182.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/5.2, allocations: 38.69 kB / 3.362 GB, free: 182.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=21): time 1.343e-06/5.2, allocations: 0 / 3.362 GB, free: 182.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=21): time 0.000987/5.201, allocations: 265.2 kB / 3.363 GB, free: 182.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.542e-05/5.201, allocations: 63.33 kB / 3.363 GB, free: 182 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/5.202, allocations: 197 kB / 3.363 GB, free: 181.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/5.202, allocations: 25.7 kB / 3.363 GB, free: 181.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 6.674e-05/5.202, allocations: 148.3 kB / 3.363 GB, free: 181.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 4.637e-05/5.202, allocations: 66.92 kB / 3.363 GB, free: 181.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.187e-06/5.202, allocations: 0 / 3.363 GB, free: 181.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.306e-05/5.202, allocations: 338.8 kB / 3.363 GB, free: 181.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.223e-05/5.202, allocations: 47.98 kB / 3.363 GB, free: 181.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/5.202, allocations: 110.8 kB / 3.364 GB, free: 181.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002412/5.202, allocations: 110.6 kB / 3.364 GB, free: 180.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/5.202, allocations: 4 kB / 3.364 GB, free: 180.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004151/5.203, allocations: 225.2 kB / 3.364 GB, free: 180.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/5.203, allocations: 7.938 kB / 3.364 GB, free: 180.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/5.203, allocations: 0 / 3.364 GB, free: 180.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/5.203, allocations: 4 kB / 3.364 GB, free: 180.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/5.203, allocations: 51.83 kB / 3.364 GB, free: 180.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/5.203, allocations: 4.094 kB / 3.364 GB, free: 180.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002229/5.203, allocations: 31.81 kB / 3.364 GB, free: 180.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.821e-05/5.203, allocations: 15.94 kB / 3.364 GB, free: 180.6 MB / 1.151 GB 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 (24): * Single equations (assignments): 24 * 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.19e-05/5.203, allocations: 101 kB / 3.364 GB, free: 180.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.668e-05/5.204, allocations: 31.72 kB / 3.364 GB, free: 180.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004556/5.204, allocations: 237 kB / 3.364 GB, free: 180.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/5.204, allocations: 4 kB / 3.364 GB, free: 180.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/5.204, allocations: 3.984 kB / 3.364 GB, free: 180.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/5.204, allocations: 0 / 3.364 GB, free: 180.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009728/5.205, allocations: 0.7106 MB / 3.365 GB, free: 179.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/5.205, allocations: 0 / 3.365 GB, free: 179.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/5.205, allocations: 56.2 kB / 3.365 GB, free: 179.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.262e-06/5.205, allocations: 4 kB / 3.365 GB, free: 179.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/5.205, allocations: 7.984 kB / 3.365 GB, free: 179.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/5.205, allocations: 4 kB / 3.365 GB, free: 179.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/5.205, allocations: 11.84 kB / 3.365 GB, free: 179.4 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006306/5.206, allocations: 0.5898 MB / 3.366 GB, free: 178.7 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009249/5.207, allocations: 1.089 MB / 3.367 GB, free: 177.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/5.207, allocations: 120.7 kB / 3.367 GB, free: 177.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.369e-05/5.207, allocations: 8.062 kB / 3.367 GB, free: 177.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/5.207, allocations: 15.98 kB / 3.367 GB, free: 177.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.022e-05/5.207, allocations: 19.89 kB / 3.367 GB, free: 177.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/5.207, allocations: 16 kB / 3.367 GB, free: 177.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0001197/5.207, allocations: 165.2 kB / 3.367 GB, free: 177.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001329/5.209, allocations: 259.8 kB / 3.367 GB, free: 176.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 1 (senDyn.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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.001611/5.21, allocations: 1.185 MB / 3.368 GB, free: 175.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0002983/5.211, allocations: 139.8 kB / 3.369 GB, free: 175.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/5.211, allocations: 0 / 3.369 GB, free: 175.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001258/5.211, allocations: 83.86 kB / 3.369 GB, free: 175.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007161/5.212, allocations: 125.3 kB / 3.369 GB, free: 175.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009115/5.213, allocations: 464.7 kB / 3.369 GB, free: 174.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004022/5.213, allocations: 0.8258 MB / 3.37 GB, free: 173.9 MB / 1.151 GB Notification: Performance of SimCode: time 4.81e-07/5.213, allocations: 0 / 3.37 GB, free: 173.9 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_Velocity_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_Velocity.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe 2>&1)