Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Dampers_Examples_MixingBox",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Dampers_Examples_MixingBox",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/BuildingSystems 2.0.0-master/package.mo): time 0.7544/0.7544, allocations: 141.8 MB / 149.1 MB, free: 4.453 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 180.6 kB / 181.9 MB, free: 108 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 221.4 MB / 436 MB, free: 9.254 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 96.06 kB / 0.507 GB, free: 24.27 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001769/0.001769, allocations: 265.9 kB / 0.5884 GB, free: 12.29 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.2163/0.2181, allocations: 89.66 MB / 0.676 GB, free: 2.543 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5119/0.73, allocations: 82.76 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.018/4.748, allocations: 1.875 GB / 2.632 GB, free: 205.3 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002972/4.748, allocations: 91.92 kB / 2.632 GB, free: 205.2 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 1.901/6.649, allocations: 0.6124 GB / 3.244 GB, free: 120.6 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/6.649, allocations: 16.47 kB / 3.245 GB, free: 120.6 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003716/6.653, allocations: 393 kB / 3.245 GB, free: 120.2 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00325/6.656, allocations: 1.054 MB / 3.246 GB, free: 119.1 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.174e-05/6.656, allocations: 16 kB / 3.246 GB, free: 119.1 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002374/6.657, allocations: 36 kB / 3.246 GB, free: 119.1 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00111/6.658, allocations: 0.5289 MB / 3.246 GB, free: 118.5 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009394/6.659, allocations: 0.5081 MB / 3.247 GB, free: 118 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/6.659, allocations: 3.938 kB / 3.247 GB, free: 118 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.958e-05/6.659, allocations: 3.906 kB / 3.247 GB, free: 118 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.147e-05/6.659, allocations: 24.36 kB / 3.247 GB, free: 118 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004912/6.664, allocations: 2.642 MB / 3.25 GB, free: 115.3 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000725/6.665, allocations: 0.4982 MB / 3.25 GB, free: 114.8 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004142/6.665, allocations: 314.1 kB / 3.25 GB, free: 114.5 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004659/6.665, allocations: 298.2 kB / 3.251 GB, free: 114.1 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/6.666, allocations: 42.55 kB / 3.251 GB, free: 114.1 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=44): time 3.046e-06/6.666, allocations: 3.938 kB / 3.251 GB, free: 114.1 MB / 0.6982 GB Notification: Performance of matching and sorting (n=44): time 0.002039/6.668, allocations: 0.6922 MB / 3.251 GB, free: 113.4 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/6.668, allocations: 55.41 kB / 3.251 GB, free: 113.3 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00162/6.669, allocations: 0.9648 MB / 3.252 GB, free: 112.3 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 0.0001332/6.669, allocations: 29.7 kB / 3.252 GB, free: 112.3 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002192/6.67, allocations: 271.3 kB / 3.253 GB, free: 112 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/6.67, allocations: 137.9 kB / 3.253 GB, free: 111.9 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/6.67, allocations: 4 kB / 3.253 GB, free: 111.9 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 9.156e-05/6.67, allocations: 322 kB / 3.253 GB, free: 111.6 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003419/6.67, allocations: 232.7 kB / 3.253 GB, free: 111.3 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004822/6.671, allocations: 454.8 kB / 3.254 GB, free: 110.8 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004233/6.671, allocations: 287.7 kB / 3.254 GB, free: 110.5 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/6.671, allocations: 3.906 kB / 3.254 GB, free: 110.5 MB / 0.6982 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001152/6.672, allocations: 0.6678 MB / 3.255 GB, free: 109.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 4.424e-05/6.672, allocations: 94 kB / 3.255 GB, free: 109.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/6.672, allocations: 4 kB / 3.255 GB, free: 109.7 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/6.673, allocations: 4 kB / 3.255 GB, free: 109.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000799/6.673, allocations: 139.8 kB / 3.255 GB, free: 109.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/6.673, allocations: 4 kB / 3.255 GB, free: 109.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001597/6.675, allocations: 130.6 kB / 3.255 GB, free: 109.5 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.895e-05/6.675, allocations: 31.97 kB / 3.255 GB, free: 109.4 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/6.675, allocations: 4 kB / 3.255 GB, free: 109.4 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008233/6.676, allocations: 0.5345 MB / 3.256 GB, free: 108.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/6.676, allocations: 0 / 3.256 GB, free: 108.9 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.73e-06/6.676, allocations: 4 kB / 3.256 GB, free: 108.9 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007166/6.677, allocations: 135.8 kB / 3.256 GB, free: 108.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/6.677, allocations: 0 / 3.256 GB, free: 108.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/6.678, allocations: 131.6 kB / 3.256 GB, free: 108.6 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.788e-05/6.678, allocations: 31.97 kB / 3.256 GB, free: 108.6 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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 0.0001703/6.678, allocations: 112.8 kB / 3.256 GB, free: 108.5 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002773/6.679, allocations: 94.86 kB / 3.256 GB, free: 108.4 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/6.68, allocations: 0.7426 MB / 3.257 GB, free: 107.6 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-06/6.68, allocations: 7.984 kB / 3.257 GB, free: 107.6 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/6.68, allocations: 0 / 3.257 GB, free: 107.6 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/6.68, allocations: 0 / 3.257 GB, free: 107.6 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002944/6.683, allocations: 1.849 MB / 3.259 GB, free: 105.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/6.683, allocations: 0 / 3.259 GB, free: 105.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006623/6.684, allocations: 120.1 kB / 3.259 GB, free: 105.6 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.215e-05/6.684, allocations: 8 kB / 3.259 GB, free: 105.6 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.207e-05/6.684, allocations: 12 kB / 3.259 GB, free: 105.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/6.684, allocations: 7.938 kB / 3.259 GB, free: 105.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/6.684, allocations: 3.906 kB / 3.259 GB, free: 105.6 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001429/6.685, allocations: 1.226 MB / 3.26 GB, free: 104.2 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002021/6.687, allocations: 2.058 MB / 3.262 GB, free: 102.1 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006044/6.688, allocations: 299.7 kB / 3.262 GB, free: 101.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002766/6.688, allocations: 8 kB / 3.262 GB, free: 101.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/6.69, allocations: 75.97 kB / 3.262 GB, free: 101.7 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/6.69, allocations: 39.84 kB / 3.262 GB, free: 101.7 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.982e-05/6.69, allocations: 20 kB / 3.262 GB, free: 101.6 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.001215/6.691, allocations: 0.7546 MB / 3.263 GB, free: 100.9 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.003778/6.695, allocations: 0.8937 MB / 3.264 GB, free: 99.98 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (mixBox.filter.s[1],mixBox.filter.s[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.002906/6.698, allocations: 1.833 MB / 3.266 GB, free: 98.29 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001399/6.699, allocations: 0.8492 MB / 3.267 GB, free: 97.44 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/6.699, allocations: 8 kB / 3.267 GB, free: 97.43 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0004519/6.7, allocations: 287.7 kB / 3.267 GB, free: 97.15 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002418/6.702, allocations: 379.7 kB / 3.267 GB, free: 96.79 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003326/6.706, allocations: 1.314 MB / 3.269 GB, free: 95.43 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/6.707, allocations: 1.18 MB / 3.27 GB, free: 94.22 MB / 0.6982 GB Notification: Performance of SimCode: time 8.62e-07/6.707, allocations: 0 / 3.27 GB, free: 94.22 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Dampers_Examples_MixingBox_fmu --startTime=0 --stopTime=240 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Dampers_Examples_MixingBox.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Dampers.Examples.MixingBox.pipe 2>&1)