Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") [: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.958/1.958, 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.001209/0.001209, allocations: 181.2 kB / 490.8 MB, free: 1.945 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.302/1.302, allocations: 221.4 MB / 0.7863 GB, free: 13.66 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.001038/0.001038, allocations: 92.66 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.155e-06/8.225e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2549, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9136/1.169, allocations: 399.5 MB / 1.602 GB, free: 15.85 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000215/1.169, allocations: 98.19 kB / 1.602 GB, free: 15.8 MB / 1.026 GB Notification: Performance of FrontEnd: time 1.369/2.538, allocations: 435.7 MB / 2.027 GB, free: 176.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001293/2.538, allocations: 28 kB / 2.027 GB, free: 176.2 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002984/2.541, allocations: 1.317 MB / 2.029 GB, free: 174.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/2.541, allocations: 8.031 kB / 2.029 GB, free: 174.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006248/2.542, allocations: 154.4 kB / 2.029 GB, free: 174.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002013/2.544, allocations: 0.8604 MB / 2.03 GB, free: 173.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.493e-05/2.544, allocations: 16 kB / 2.03 GB, free: 173.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003185/2.544, allocations: 80 kB / 2.03 GB, free: 173.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007012/2.545, allocations: 394.5 kB / 2.03 GB, free: 173.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007512/2.546, allocations: 0.516 MB / 2.03 GB, free: 172.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/2.546, allocations: 0 / 2.03 GB, free: 172.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.339e-05/2.546, allocations: 7.906 kB / 2.03 GB, free: 172.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/2.546, allocations: 12 kB / 2.03 GB, free: 172.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004007/2.55, allocations: 2.95 MB / 2.033 GB, free: 169.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004389/2.55, allocations: 311.4 kB / 2.034 GB, free: 169.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001871/2.551, allocations: 141.4 kB / 2.034 GB, free: 169.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002408/2.551, allocations: 344.7 kB / 2.034 GB, free: 168.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/2.551, allocations: 38.84 kB / 2.034 GB, free: 168.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 1.693e-06/2.551, allocations: 0 / 2.034 GB, free: 168.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.001366/2.552, allocations: 0.4947 MB / 2.035 GB, free: 168.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.088e-05/2.552, allocations: 59.34 kB / 2.035 GB, free: 168.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006799/2.553, allocations: 0.6323 MB / 2.035 GB, free: 167.5 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.00015/2.553, allocations: 33.7 kB / 2.035 GB, free: 167.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003105/2.553, allocations: 416.8 kB / 2.036 GB, free: 167 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.085e-05/2.553, allocations: 106.4 kB / 2.036 GB, free: 166.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.793e-05/2.553, allocations: 4 kB / 2.036 GB, free: 166.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.283e-05/2.554, allocations: 326 kB / 2.036 GB, free: 166.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002376/2.554, allocations: 157.3 kB / 2.036 GB, free: 166.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001049/2.555, allocations: 1.415 MB / 2.038 GB, free: 164.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009084/2.556, allocations: 391.9 kB / 2.038 GB, free: 164.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/2.556, allocations: 0 / 2.038 GB, free: 164.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001421/2.557, allocations: 0.6709 MB / 2.039 GB, free: 163.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001467/2.557, allocations: 0.8057 MB / 2.04 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/2.557, allocations: 0 / 2.04 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/2.557, allocations: 11.91 kB / 2.04 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/2.559, allocations: 211.6 kB / 2.04 GB, free: 162.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001214/2.56, allocations: 2.993 MB / 2.043 GB, free: 159.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003101/2.563, allocations: 0.7616 MB / 2.043 GB, free: 158.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.863e-05/2.563, allocations: 35.98 kB / 2.043 GB, free: 158.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.207e-06/2.563, allocations: 7.938 kB / 2.043 GB, free: 158.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001116/2.564, allocations: 498.5 kB / 2.044 GB, free: 158.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/2.564, allocations: 4 kB / 2.044 GB, free: 158.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.464e-06/2.564, allocations: 4 kB / 2.044 GB, free: 158.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00065/2.565, allocations: 160 kB / 2.044 GB, free: 157.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/2.565, allocations: 11.98 kB / 2.044 GB, free: 157.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003039/2.568, allocations: 0.7498 MB / 2.045 GB, free: 157.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.708e-05/2.568, allocations: 27.98 kB / 2.045 GB, free: 157.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003163/2.568, allocations: 135 kB / 2.045 GB, free: 157 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/2.569, allocations: 94.78 kB / 2.045 GB, free: 156.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001474/2.57, allocations: 0.5676 MB / 2.046 GB, free: 156.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/2.57, allocations: 4 kB / 2.046 GB, free: 156.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/2.57, allocations: 4 kB / 2.046 GB, free: 156.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/2.57, allocations: 7.984 kB / 2.046 GB, free: 156.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002337/2.573, allocations: 1.228 MB / 2.047 GB, free: 155 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/2.573, allocations: 4 kB / 2.047 GB, free: 155 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005466/2.573, allocations: 123.9 kB / 2.047 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.775e-06/2.573, allocations: 0 / 2.047 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.87e-05/2.573, allocations: 7.984 kB / 2.047 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008281/2.574, allocations: 2.961 MB / 2.05 GB, free: 151.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/2.574, allocations: 7.938 kB / 2.05 GB, free: 151.8 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001068/2.575, allocations: 0.6663 MB / 2.051 GB, free: 151.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003593/2.575, allocations: 219.7 kB / 2.051 GB, free: 150.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001698/2.576, allocations: 0 / 2.051 GB, free: 150.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006479/2.576, allocations: 63.92 kB / 2.051 GB, free: 150.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.655e-05/2.576, allocations: 31.67 kB / 2.051 GB, free: 150.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/2.576, allocations: 16 kB / 2.051 GB, free: 150.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0005115/2.577, allocations: 488.6 kB / 2.051 GB, free: 150.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001931/2.579, allocations: 0.5889 MB / 2.052 GB, free: 149.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001061/2.58, allocations: 0.5142 MB / 2.052 GB, free: 149.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002362/2.582, allocations: 0.7795 MB / 2.053 GB, free: 148.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/2.582, allocations: 0.75 kB / 2.053 GB, free: 148.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004756/2.583, allocations: 211.8 kB / 2.053 GB, free: 148.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001837/2.585, allocations: 379.5 kB / 2.054 GB, free: 147.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002081/2.587, allocations: 1.082 MB / 2.055 GB, free: 146.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005548/2.587, allocations: 1.132 MB / 2.056 GB, free: 145.5 MB / 1.151 GB Notification: Performance of SimCode: time 4.71e-07/2.587, allocations: 0 / 2.056 GB, free: 145.5 MB / 1.151 GB Notification: Performance of Templates: time 0.03769/2.625, allocations: 26.62 MB / 2.082 GB, free: 119.2 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches