Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.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: translateModel(Buildings.Fluid.FixedResistances.Examples.Pipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pip.vol.1..T|pip.vol.5..T|pip.vol.10..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe") translateModel(Buildings.Fluid.FixedResistances.Examples.Pipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pip.vol.1..T|pip.vol.5..T|pip.vol.10..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe") [: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 2.054/2.054, allocations: 390.4 MB / 397.7 MB, free: 1.992 MB / 307 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 180.1 kB / 490.8 MB, free: 7.586 MB / 403 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 221.3 MB / 0.7863 GB, free: 340 kB / 0.5498 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009215/0.0009215, allocations: 94.56 kB / 0.9264 GB, free: 0.7109 MB / 0.6904 GB Notification: Performance of FrontEnd - loaded program: time 7.945e-06/8.035e-06, allocations: 4 kB / 1.072 GB, free: 137.6 MB / 0.7217 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2913, allocations: 143 MB / 1.212 GB, free: 10.68 MB / 0.7373 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9999/1.291, allocations: 443.1 MB / 1.644 GB, free: 6.746 MB / 1.112 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/1.291, allocations: 87.94 kB / 1.644 GB, free: 6.66 MB / 1.112 GB Notification: Performance of FrontEnd: time 2.656/3.948, allocations: 0.7907 GB / 2.435 GB, free: 77.73 MB / 1.128 GB Notification: Performance of Transformations before backend: time 0.001438/3.949, allocations: 195.8 kB / 2.435 GB, free: 77.54 MB / 1.128 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01934/3.968, allocations: 5.605 MB / 2.441 GB, free: 71.86 MB / 1.128 GB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/3.968, allocations: 8.031 kB / 2.441 GB, free: 71.85 MB / 1.128 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006475/3.975, allocations: 0.8578 MB / 2.442 GB, free: 70.98 MB / 1.128 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06273/4.038, allocations: 24.59 MB / 2.466 GB, free: 46.18 MB / 1.128 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004873/4.038, allocations: 243.8 kB / 2.466 GB, free: 45.93 MB / 1.128 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0024/4.041, allocations: 299.9 kB / 2.466 GB, free: 45.64 MB / 1.128 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0135/4.054, allocations: 5.17 MB / 2.471 GB, free: 40.46 MB / 1.128 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02364/4.078, allocations: 6.422 MB / 2.477 GB, free: 33.76 MB / 1.128 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004489/4.078, allocations: 23.72 kB / 2.477 GB, free: 33.73 MB / 1.128 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002766/4.081, allocations: 12 kB / 2.477 GB, free: 33.72 MB / 1.128 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003585/4.082, allocations: 229.4 kB / 2.478 GB, free: 33.5 MB / 1.128 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05002/4.132, allocations: 29.11 MB / 2.506 GB, free: 3.051 MB / 1.128 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006107/4.138, allocations: 3.233 MB / 2.509 GB, free: 15.82 MB / 1.144 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003329/4.141, allocations: 1.685 MB / 2.511 GB, free: 14.13 MB / 1.144 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001384/4.143, allocations: 0.9746 MB / 2.512 GB, free: 12.95 MB / 1.144 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000118/4.143, allocations: 85 kB / 2.512 GB, free: 12.86 MB / 1.144 GB Notification: Performance of pre-optimization done (n=253): time 5.089e-06/4.143, allocations: 0 / 2.512 GB, free: 12.86 MB / 1.144 GB Notification: Performance of matching and sorting (n=253): time 0.009537/4.152, allocations: 3.171 MB / 2.515 GB, free: 9.668 MB / 1.144 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/4.152, allocations: 77.41 kB / 2.515 GB, free: 9.578 MB / 1.144 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01363/4.166, allocations: 4.879 MB / 2.52 GB, free: 4.715 MB / 1.144 GB Notification: Performance of collectPreVariables (initialization): time 0.00104/4.167, allocations: 29.7 kB / 2.52 GB, free: 4.68 MB / 1.144 GB Notification: Performance of collectInitialEqns (initialization): time 0.003872/4.171, allocations: 2.065 MB / 2.522 GB, free: 2.582 MB / 1.144 GB Notification: Performance of collectInitialBindings (initialization): time 0.002822/4.174, allocations: 0.8662 MB / 2.523 GB, free: 1.703 MB / 1.144 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006642/4.175, allocations: 0 / 2.523 GB, free: 1.703 MB / 1.144 GB Notification: Performance of setup shared object (initialization): time 0.0005023/4.175, allocations: 453.2 kB / 2.523 GB, free: 1.254 MB / 1.144 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5132/4.688, allocations: 1.453 MB / 2.525 GB, free: 316.2 MB / 1.144 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003105/4.692, allocations: 2.581 MB / 2.527 GB, free: 314.9 MB / 1.144 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003491/4.695, allocations: 2.203 MB / 2.529 GB, free: 314.9 MB / 1.144 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-05/4.695, allocations: 11.34 kB / 2.529 GB, free: 314.9 MB / 1.144 GB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008002/4.703, allocations: 4.489 MB / 2.534 GB, free: 314.7 MB / 1.144 GB Notification: Performance of prepare postOptimizeDAE: time 0.00324/4.706, allocations: 16.63 MB / 2.55 GB, free: 297 MB / 1.144 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-05/4.706, allocations: 33.78 kB / 2.55 GB, free: 297 MB / 1.144 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.835e-05/4.707, allocations: 61.59 kB / 2.55 GB, free: 297 MB / 1.144 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003743/4.71, allocations: 0.88 MB / 2.551 GB, free: 297 MB / 1.144 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005899/4.711, allocations: 1.261 MB / 2.552 GB, free: 295.8 MB / 1.144 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005877/4.717, allocations: 434.2 kB / 2.553 GB, free: 295.8 MB / 1.144 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005834/4.717, allocations: 167 kB / 2.553 GB, free: 295.8 MB / 1.144 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/4.717, allocations: 3.156 kB / 2.553 GB, free: 295.8 MB / 1.144 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006148/4.724, allocations: 3.972 MB / 2.557 GB, free: 295.8 MB / 1.144 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.432e-05/4.724, allocations: 34.72 kB / 2.557 GB, free: 295.8 MB / 1.144 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.7e-05/4.724, allocations: 61.97 kB / 2.557 GB, free: 295.8 MB / 1.144 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002863/4.727, allocations: 0.8649 MB / 2.557 GB, free: 295.8 MB / 1.144 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.593e-05/4.727, allocations: 77.41 kB / 2.558 GB, free: 295.8 MB / 1.144 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00479/4.731, allocations: 372.6 kB / 2.558 GB, free: 295.8 MB / 1.144 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003494/4.732, allocations: 163.4 kB / 2.558 GB, free: 295.8 MB / 1.144 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (436): * Single equations (assignments): 434 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001087/4.733, allocations: 215.5 kB / 2.558 GB, free: 295.7 MB / 1.144 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001704/4.735, allocations: 0.4966 MB / 2.559 GB, free: 295.6 MB / 1.144 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006712/4.741, allocations: 3.68 MB / 2.562 GB, free: 295.4 MB / 1.144 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.733e-05/4.741, allocations: 29.23 kB / 2.562 GB, free: 295.4 MB / 1.144 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.958e-06/4.741, allocations: 0 / 2.562 GB, free: 295.4 MB / 1.144 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003974/4.745, allocations: 2.812 MB / 2.565 GB, free: 295.2 MB / 1.144 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01779/4.763, allocations: 8.818 MB / 2.574 GB, free: 294.7 MB / 1.144 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/4.763, allocations: 2.75 kB / 2.574 GB, free: 294.7 MB / 1.144 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00234/4.766, allocations: 0.5319 MB / 2.574 GB, free: 294.7 MB / 1.144 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-05/4.766, allocations: 7.094 kB / 2.574 GB, free: 294.7 MB / 1.144 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001738/4.766, allocations: 48.66 kB / 2.574 GB, free: 294.7 MB / 1.144 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003888/4.766, allocations: 1.197 MB / 2.575 GB, free: 293.6 MB / 1.144 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/4.766, allocations: 0 / 2.575 GB, free: 293.6 MB / 1.144 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007729/4.774, allocations: 5.64 MB / 2.581 GB, free: 292.9 MB / 1.144 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004078/4.778, allocations: 1.268 MB / 2.582 GB, free: 292.5 MB / 1.144 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0015/4.78, allocations: 23.59 kB / 2.582 GB, free: 292.5 MB / 1.144 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004348/4.784, allocations: 213.2 kB / 2.582 GB, free: 292.5 MB / 1.144 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003262/4.784, allocations: 139 kB / 2.583 GB, free: 292.5 MB / 1.144 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005617/4.785, allocations: 144.8 kB / 2.583 GB, free: 292.5 MB / 1.144 GB Notification: Performance of sort global known variables: time 0.008914/4.794, allocations: 3.773 MB / 2.586 GB, free: 292.3 MB / 1.144 GB Notification: Performance of remove unused functions: time 0.01371/4.808, allocations: 3.21 MB / 2.59 GB, free: 292.1 MB / 1.144 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 22 (pip.vol[1].dynBal.U,pip.vol[2].dynBal.U,pip.vol[3].dynBal.U,pip.vol[4].dynBal.U,pip.vol[5].dynBal.U,pip.vol[6].dynBal.U,pip.vol[7].dynBal.U,pip.vol[8].dynBal.U,pip.vol[9].dynBal.U,pip.vol[10].dynBal.U,pip1.vol[1].dynBal.U,pip1.vol[2].dynBal.U,pip1.vol[3].dynBal.U,pip1.vol[4].dynBal.U,pip1.vol[5].dynBal.U,pip1.vol[6].dynBal.U,pip1.vol[7].dynBal.U,pip1.vol[8].dynBal.U,pip1.vol[9].dynBal.U,pip1.vol[10].dynBal.U,senTem.T,senTem1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 251 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001854/4.809, allocations: 0.6527 MB / 2.59 GB, free: 292 MB / 1.144 GB Notification: Performance of simCode: created initialization part: time 0.008714/4.818, allocations: 5.723 MB / 2.596 GB, free: 291.9 MB / 1.144 GB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/4.818, allocations: 4.219 kB / 2.596 GB, free: 291.9 MB / 1.144 GB Notification: Performance of simCode: created simulation system equations: time 0.001924/4.82, allocations: 1.552 MB / 2.597 GB, free: 291.9 MB / 1.144 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01537/4.835, allocations: 3.037 MB / 2.6 GB, free: 291.8 MB / 1.144 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02178/4.857, allocations: 11.7 MB / 2.612 GB, free: 289.9 MB / 1.144 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006126/4.863, allocations: 5.184 MB / 2.617 GB, free: 289 MB / 1.144 GB Notification: Performance of SimCode: time 1.623e-06/4.863, allocations: 1.688 kB / 2.617 GB, free: 289 MB / 1.144 GB Notification: Performance of Templates: time 0.1969/5.06, allocations: 126.4 MB / 2.74 GB, free: 282.9 MB / 1.144 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.makefile (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.sim & ./Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_Pipe.csv","../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.Pipe.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches