Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.923/1.923, allocations: 387.2 MB / 394.5 MB, free: 13.69 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.001278/0.001278, allocations: 180.5 kB / 487 MB, free: 5.375 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.271/1.271, allocations: 221.3 MB / 0.7819 GB, free: 1.402 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009254/0.0009254, allocations: 102.1 kB / 0.9213 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.145e-06/8.275e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.2037, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7625/0.9662, allocations: 398.7 MB / 1.595 GB, free: 8.25 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000218/0.9664, allocations: 95.86 kB / 1.595 GB, free: 8.199 MB / 1.026 GB Notification: Performance of FrontEnd: time 1.185/2.152, allocations: 435.7 MB / 2.02 GB, free: 140.8 MB / 1.135 GB Notification: Performance of Transformations before backend: time 7.953e-05/2.152, allocations: 35.98 kB / 2.02 GB, free: 140.8 MB / 1.135 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.00203/2.154, allocations: 1.305 MB / 2.021 GB, free: 139.4 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/2.154, allocations: 9.031 kB / 2.021 GB, free: 139.4 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002606/2.154, allocations: 154.5 kB / 2.022 GB, free: 139.3 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001459/2.156, allocations: 0.8565 MB / 2.022 GB, free: 138.4 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/2.156, allocations: 20 kB / 2.022 GB, free: 138.3 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/2.156, allocations: 76 kB / 2.022 GB, free: 138.3 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006175/2.157, allocations: 398.5 kB / 2.023 GB, free: 137.9 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006944/2.157, allocations: 0.5199 MB / 2.023 GB, free: 137.3 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/2.157, allocations: 3.938 kB / 2.023 GB, free: 137.3 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.035e-05/2.157, allocations: 0 / 2.023 GB, free: 137.3 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/2.157, allocations: 12 kB / 2.023 GB, free: 137.3 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003306/2.161, allocations: 2.936 MB / 2.026 GB, free: 134.2 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004254/2.161, allocations: 312.8 kB / 2.027 GB, free: 133.9 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/2.161, allocations: 141.4 kB / 2.027 GB, free: 133.8 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002497/2.162, allocations: 344.7 kB / 2.027 GB, free: 133.4 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.581e-05/2.162, allocations: 34.84 kB / 2.027 GB, free: 133.3 MB / 1.135 GB Notification: Performance of pre-optimization done (n=33): time 1.573e-06/2.162, allocations: 0 / 2.027 GB, free: 133.3 MB / 1.135 GB Notification: Performance of matching and sorting (n=33): time 0.001257/2.163, allocations: 498.7 kB / 2.028 GB, free: 132.8 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.9e-05/2.163, allocations: 59.39 kB / 2.028 GB, free: 132.8 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005864/2.163, allocations: 0.6362 MB / 2.028 GB, free: 132.1 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.0001071/2.164, allocations: 37.7 kB / 2.028 GB, free: 132.1 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.000242/2.164, allocations: 423.8 kB / 2.029 GB, free: 131.6 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 5.438e-05/2.164, allocations: 106.4 kB / 2.029 GB, free: 131.5 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.639e-05/2.164, allocations: 0 / 2.029 GB, free: 131.5 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 4.822e-05/2.164, allocations: 326 kB / 2.029 GB, free: 131.2 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002271/2.164, allocations: 157.3 kB / 2.029 GB, free: 131.1 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009893/2.165, allocations: 1.415 MB / 2.031 GB, free: 129.3 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000784/2.166, allocations: 399.9 kB / 2.031 GB, free: 128.9 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/2.166, allocations: 7.844 kB / 2.031 GB, free: 128.9 MB / 1.135 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001283/2.167, allocations: 0.6555 MB / 2.032 GB, free: 128.2 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/2.167, allocations: 0.8096 MB / 2.032 GB, free: 127.3 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-06/2.167, allocations: 4.094 kB / 2.032 GB, free: 127.3 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/2.167, allocations: 7.984 kB / 2.032 GB, free: 127.3 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/2.169, allocations: 211.6 kB / 2.033 GB, free: 127.1 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/2.17, allocations: 3.001 MB / 2.036 GB, free: 124 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002863/2.173, allocations: 0.7654 MB / 2.036 GB, free: 123.2 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.813e-05/2.173, allocations: 27.98 kB / 2.036 GB, free: 123.2 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 5.019e-06/2.173, allocations: 4 kB / 2.036 GB, free: 123.2 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001003/2.174, allocations: 0.4907 MB / 2.037 GB, free: 122.7 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.885e-06/2.174, allocations: 0 / 2.037 GB, free: 122.7 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.761e-06/2.174, allocations: 8.188 kB / 2.037 GB, free: 122.7 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006478/2.175, allocations: 163.8 kB / 2.037 GB, free: 122.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/2.175, allocations: 7.906 kB / 2.037 GB, free: 122.5 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002676/2.177, allocations: 0.746 MB / 2.038 GB, free: 121.8 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.781e-05/2.177, allocations: 31.98 kB / 2.038 GB, free: 121.7 MB / 1.135 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.0001796/2.177, allocations: 145.6 kB / 2.038 GB, free: 121.6 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.378e-05/2.178, allocations: 86.78 kB / 2.038 GB, free: 121.5 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001257/2.179, allocations: 0.5748 MB / 2.039 GB, free: 120.9 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-06/2.179, allocations: 8 kB / 2.039 GB, free: 120.9 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/2.179, allocations: 0 / 2.039 GB, free: 120.9 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/2.179, allocations: 3.984 kB / 2.039 GB, free: 120.9 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001793/2.181, allocations: 1.231 MB / 2.04 GB, free: 119.6 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/2.181, allocations: 0 / 2.04 GB, free: 119.6 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000509/2.181, allocations: 119.8 kB / 2.04 GB, free: 119.5 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/2.181, allocations: 4 kB / 2.04 GB, free: 119.5 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/2.181, allocations: 15.92 kB / 2.04 GB, free: 119.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007422/2.182, allocations: 2.958 MB / 2.043 GB, free: 116.4 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/2.182, allocations: 0 / 2.043 GB, free: 116.4 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009685/2.183, allocations: 0.6629 MB / 2.043 GB, free: 115.7 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000212/2.183, allocations: 219.7 kB / 2.044 GB, free: 115.5 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/2.183, allocations: 3.984 kB / 2.044 GB, free: 115.5 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005344/2.184, allocations: 59.94 kB / 2.044 GB, free: 115.4 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.264e-05/2.184, allocations: 27.86 kB / 2.044 GB, free: 115.4 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.719e-05/2.184, allocations: 16 kB / 2.044 GB, free: 115.4 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.0004253/2.184, allocations: 496.6 kB / 2.044 GB, free: 114.9 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.001323/2.186, allocations: 0.5809 MB / 2.045 GB, free: 114.3 MB / 1.135 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.0007493/2.186, allocations: 0.5184 MB / 2.045 GB, free: 113.8 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.001888/2.188, allocations: 0.776 MB / 2.046 GB, free: 113 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/2.188, allocations: 0 / 2.046 GB, free: 113 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0004639/2.189, allocations: 211.7 kB / 2.046 GB, free: 112.8 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001748/2.191, allocations: 380.2 kB / 2.047 GB, free: 112.4 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/2.192, allocations: 1.078 MB / 2.048 GB, free: 111.3 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004934/2.193, allocations: 1.136 MB / 2.049 GB, free: 110.1 MB / 1.135 GB Notification: Performance of SimCode: time 3.4e-07/2.193, allocations: 0 / 2.049 GB, free: 110.1 MB / 1.135 GB Notification: Performance of Templates: time 0.03424/2.227, allocations: 26.63 MB / 2.075 GB, free: 83.87 MB / 1.135 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches