Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") [: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.934/1.934, allocations: 390.4 MB / 397.7 MB, free: 11.2 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.001287/0.001287, allocations: 191.9 kB / 490.8 MB, free: 1.891 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.34/1.34, allocations: 221.4 MB / 0.7863 GB, free: 13.63 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.001044/0.001044, allocations: 95.38 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.414e-06/7.524e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2341, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8933/1.127, allocations: 394.9 MB / 1.597 GB, free: 4.027 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/1.128, allocations: 86.67 kB / 1.597 GB, free: 3.98 MB / 1.01 GB Notification: Performance of FrontEnd: time 0.9553/2.083, allocations: 239.9 MB / 1.832 GB, free: 364.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 6.11e-05/2.083, allocations: 23.38 kB / 1.832 GB, free: 364.7 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001844/2.085, allocations: 0.9832 MB / 1.833 GB, free: 364 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/2.085, allocations: 12.44 kB / 1.833 GB, free: 364 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002386/2.085, allocations: 83.34 kB / 1.833 GB, free: 363.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009637/2.086, allocations: 0.513 MB / 1.833 GB, free: 363.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/2.086, allocations: 14.81 kB / 1.833 GB, free: 363.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.777e-05/2.086, allocations: 29.91 kB / 1.833 GB, free: 363.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006547/2.087, allocations: 362 kB / 1.834 GB, free: 363.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006786/2.088, allocations: 0.498 MB / 1.834 GB, free: 363 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/2.088, allocations: 5.062 kB / 1.834 GB, free: 363 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/2.088, allocations: 2.531 kB / 1.834 GB, free: 363 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/2.088, allocations: 11.66 kB / 1.834 GB, free: 363 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002683/2.091, allocations: 3.113 MB / 1.837 GB, free: 360.2 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004421/2.091, allocations: 278.7 kB / 1.837 GB, free: 360 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002597/2.091, allocations: 180.7 kB / 1.838 GB, free: 359.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002493/2.092, allocations: 344.8 kB / 1.838 GB, free: 359.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/2.092, allocations: 36.06 kB / 1.838 GB, free: 359.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=38): time 1.573e-06/2.092, allocations: 1.531 kB / 1.838 GB, free: 359.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=38): time 0.002189/2.094, allocations: 0.7131 MB / 1.839 GB, free: 359.1 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.343e-05/2.094, allocations: 54.81 kB / 1.839 GB, free: 359.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005258/2.094, allocations: 444 kB / 1.839 GB, free: 358.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.002e-05/2.094, allocations: 26.8 kB / 1.839 GB, free: 358.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000126/2.095, allocations: 266.9 kB / 1.839 GB, free: 358.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.614e-05/2.095, allocations: 125.5 kB / 1.84 GB, free: 358.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.505e-05/2.095, allocations: 0.875 kB / 1.84 GB, free: 358.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.375e-05/2.095, allocations: 367.1 kB / 1.84 GB, free: 358.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002691/2.095, allocations: 148.8 kB / 1.84 GB, free: 358 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003333/2.095, allocations: 333.4 kB / 1.84 GB, free: 357.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001518/2.097, allocations: 467.9 kB / 1.841 GB, free: 357.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/2.097, allocations: 1.969 kB / 1.841 GB, free: 357.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002142/2.099, allocations: 0.8275 MB / 1.842 GB, free: 357 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002929/2.099, allocations: 1.744 MB / 1.843 GB, free: 355.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/2.099, allocations: 5.156 kB / 1.843 GB, free: 355.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003954/2.1, allocations: 107.2 kB / 1.843 GB, free: 355.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005849/2.1, allocations: 145.3 kB / 1.844 GB, free: 355.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000951/2.101, allocations: 0.7291 MB / 1.844 GB, free: 354.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007215/2.102, allocations: 90.42 kB / 1.844 GB, free: 354.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.05e-05/2.102, allocations: 42.53 kB / 1.844 GB, free: 354.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.365e-06/2.102, allocations: 4.344 kB / 1.844 GB, free: 354.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001934/2.104, allocations: 0.7001 MB / 1.845 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/2.104, allocations: 5.344 kB / 1.845 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/2.104, allocations: 7.344 kB / 1.845 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000632/2.105, allocations: 162.5 kB / 1.845 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.336e-05/2.105, allocations: 14.86 kB / 1.845 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006329/2.105, allocations: 87.5 kB / 1.845 GB, free: 353.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.862e-05/2.105, allocations: 35.02 kB / 1.845 GB, free: 353.9 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001504/2.106, allocations: 119.5 kB / 1.845 GB, free: 353.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/2.106, allocations: 63.19 kB / 1.846 GB, free: 353.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002279/2.108, allocations: 0.8172 MB / 1.846 GB, free: 353.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/2.108, allocations: 11.98 kB / 1.846 GB, free: 353.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/2.108, allocations: 4.781 kB / 1.846 GB, free: 353.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/2.108, allocations: 0 / 1.846 GB, free: 353.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003393/2.112, allocations: 1.488 MB / 1.848 GB, free: 352.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.822e-06/2.112, allocations: 2.906 kB / 1.848 GB, free: 352.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000426/2.112, allocations: 96.25 kB / 1.848 GB, free: 352.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004025/2.112, allocations: 121 kB / 1.848 GB, free: 352.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.587e-05/2.112, allocations: 7.969 kB / 1.848 GB, free: 352.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000929/2.113, allocations: 0.7136 MB / 1.849 GB, free: 351.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/2.113, allocations: 8.797 kB / 1.849 GB, free: 351.6 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002351/2.116, allocations: 0.9117 MB / 1.85 GB, free: 351 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003715/2.116, allocations: 192.8 kB / 1.85 GB, free: 350.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/2.116, allocations: 1.281 kB / 1.85 GB, free: 350.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005556/2.117, allocations: 60.66 kB / 1.85 GB, free: 350.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.967e-05/2.117, allocations: 23.81 kB / 1.85 GB, free: 350.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.293e-05/2.117, allocations: 21.58 kB / 1.85 GB, free: 350.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0004082/2.117, allocations: 337.4 kB / 1.85 GB, free: 350.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001532/2.119, allocations: 394.6 kB / 1.851 GB, free: 350.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009166/2.12, allocations: 422.1 kB / 1.851 GB, free: 350.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001658/2.122, allocations: 0.7278 MB / 1.852 GB, free: 350 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/2.122, allocations: 4.844 kB / 1.852 GB, free: 350 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005186/2.122, allocations: 238.6 kB / 1.852 GB, free: 349.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001249/2.123, allocations: 229.1 kB / 1.852 GB, free: 349.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/2.125, allocations: 0.754 MB / 1.853 GB, free: 349.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005474/2.125, allocations: 0.9924 MB / 1.854 GB, free: 348.6 MB / 1.151 GB Notification: Performance of SimCode: time 3.21e-07/2.125, allocations: 0 / 1.854 GB, free: 348.6 MB / 1.151 GB Notification: Performance of Templates: time 0.02285/2.148, allocations: 14.18 MB / 1.868 GB, free: 339.3 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches