Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.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.Validation.TwoWayValveParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valOPPoi.m_flow|valKv.m_flow|valCv.m_flow|valAv.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization") translateModel(Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valOPPoi.m_flow|valKv.m_flow|valCv.m_flow|valAv.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.289/2.289, allocations: 387.4 MB / 394.9 MB, free: 13.42 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.001107/0.001107, allocations: 176.8 kB / 487.4 MB, free: 5.055 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.44/1.44, allocations: 221.5 MB / 0.7824 GB, free: 1 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.0009336/0.0009338, allocations: 99.83 kB / 0.9219 GB, free: 2.238 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.765e-05/1.767e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2635, allocations: 142.4 MB / 1.206 GB, free: 44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.09/1.353, allocations: 396.1 MB / 1.593 GB, free: 10.04 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002771/1.353, allocations: 94.75 kB / 1.593 GB, free: 9.984 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.584/2.937, allocations: 414.9 MB / 1.998 GB, free: 209 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.163e-06/2.937, allocations: 4 kB / 1.998 GB, free: 209 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.98e-05/2.938, allocations: 23.98 kB / 1.998 GB, free: 209 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.001958/2.939, allocations: 1.048 MB / 1.999 GB, free: 207.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/2.94, allocations: 12.03 kB / 1.999 GB, free: 207.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002733/2.94, allocations: 95.22 kB / 1.999 GB, free: 207.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/2.941, allocations: 0.5783 MB / 2 GB, free: 207.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/2.941, allocations: 16 kB / 2 GB, free: 207.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.698e-05/2.941, allocations: 36 kB / 2 GB, free: 207.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004263/2.941, allocations: 242.6 kB / 2 GB, free: 206.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004891/2.942, allocations: 308 kB / 2 GB, free: 206.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/2.942, allocations: 0 / 2 GB, free: 206.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/2.942, allocations: 0 / 2 GB, free: 206.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/2.942, allocations: 12 kB / 2 GB, free: 206.6 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002521/2.945, allocations: 1.748 MB / 2.002 GB, free: 204.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000228/2.945, allocations: 154.5 kB / 2.002 GB, free: 204.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.758e-05/2.945, allocations: 65.19 kB / 2.002 GB, free: 204.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000217/2.945, allocations: 344.4 kB / 2.003 GB, free: 204 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.83e-05/2.945, allocations: 34.56 kB / 2.003 GB, free: 204 MB / 1.151 GB Notification: Performance of pre-optimization done (n=19): time 1.402e-06/2.945, allocations: 0 / 2.003 GB, free: 204 MB / 1.151 GB Notification: Performance of matching and sorting (n=19): time 0.0004844/2.946, allocations: 218 kB / 2.003 GB, free: 203.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.907e-05/2.946, allocations: 59.41 kB / 2.003 GB, free: 203.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000471/2.946, allocations: 487.7 kB / 2.003 GB, free: 203.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/2.946, allocations: 25.7 kB / 2.003 GB, free: 203.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000166/2.946, allocations: 368.2 kB / 2.004 GB, free: 202.8 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.444e-05/2.946, allocations: 59.11 kB / 2.004 GB, free: 202.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.54e-05/2.946, allocations: 0 / 2.004 GB, free: 202.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.256e-05/2.946, allocations: 370.8 kB / 2.004 GB, free: 202.4 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/2.947, allocations: 80.73 kB / 2.004 GB, free: 202.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/2.947, allocations: 193.2 kB / 2.004 GB, free: 202.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002469/2.947, allocations: 117.6 kB / 2.005 GB, free: 202 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/2.947, allocations: 3.938 kB / 2.005 GB, free: 202 MB / 1.151 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005086/2.948, allocations: 339.9 kB / 2.005 GB, free: 201.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 6.888e-05/2.948, allocations: 274.9 kB / 2.005 GB, free: 201.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/2.948, allocations: 4 kB / 2.005 GB, free: 201.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/2.948, allocations: 4 kB / 2.005 GB, free: 201.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009167/2.949, allocations: 139.8 kB / 2.005 GB, free: 201.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008799/2.95, allocations: 2.387 MB / 2.008 GB, free: 198.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006074/2.95, allocations: 71.94 kB / 2.008 GB, free: 198.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-05/2.95, allocations: 23.98 kB / 2.008 GB, free: 198.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.468e-06/2.95, allocations: 4 kB / 2.008 GB, free: 198.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003988/2.951, allocations: 223.8 kB / 2.008 GB, free: 198.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.026e-06/2.951, allocations: 0 / 2.008 GB, free: 198.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.919e-06/2.951, allocations: 4 kB / 2.008 GB, free: 198.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004007/2.951, allocations: 99.86 kB / 2.008 GB, free: 198.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.847e-06/2.951, allocations: 0 / 2.008 GB, free: 198.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005314/2.952, allocations: 71.72 kB / 2.008 GB, free: 198.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.264e-05/2.952, allocations: 24.17 kB / 2.008 GB, free: 198.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001067/2.952, allocations: 116.9 kB / 2.008 GB, free: 198.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/2.952, allocations: 59.16 kB / 2.008 GB, free: 198 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000513/2.952, allocations: 269.4 kB / 2.008 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/2.952, allocations: 4 kB / 2.008 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/2.952, allocations: 0 / 2.008 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/2.952, allocations: 0 / 2.008 GB, free: 197.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009821/2.953, allocations: 0.7762 MB / 2.009 GB, free: 196.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/2.953, allocations: 0 / 2.009 GB, free: 196.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003055/2.954, allocations: 83.98 kB / 2.009 GB, free: 196.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/2.954, allocations: 7.953 kB / 2.009 GB, free: 196.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/2.954, allocations: 7.938 kB / 2.009 GB, free: 196.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006226/2.954, allocations: 2.36 MB / 2.012 GB, free: 194.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/2.954, allocations: 7.969 kB / 2.012 GB, free: 194.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003565/2.955, allocations: 392 kB / 2.012 GB, free: 193.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/2.955, allocations: 176.1 kB / 2.012 GB, free: 193.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.885e-05/2.955, allocations: 11.98 kB / 2.012 GB, free: 193.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003972/2.955, allocations: 47.94 kB / 2.012 GB, free: 193.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.522e-05/2.955, allocations: 15.92 kB / 2.012 GB, free: 193.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/2.955, allocations: 8 kB / 2.012 GB, free: 193.6 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0003456/2.956, allocations: 371.2 kB / 2.013 GB, free: 193.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.3e-07/2.956, allocations: 0 / 2.013 GB, free: 193.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0009592/2.957, allocations: 383.1 kB / 2.013 GB, free: 192.9 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 (21): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007303/2.958, allocations: 488.8 kB / 2.013 GB, free: 192.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00106/2.959, allocations: 413 kB / 2.014 GB, free: 192 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/2.959, allocations: 4 kB / 2.014 GB, free: 192 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002636/2.959, allocations: 121.5 kB / 2.014 GB, free: 191.9 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/2.96, allocations: 281.7 kB / 2.014 GB, free: 191.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/2.962, allocations: 0.7188 MB / 2.015 GB, free: 190.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/2.962, allocations: 0.9502 MB / 2.016 GB, free: 189.9 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0005406/2.963, allocations: 136.5 kB / 2.016 GB, free: 189.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.487e-05/2.963, allocations: 35.44 kB / 2.016 GB, free: 189.7 MB / 1.151 GB Notification: Performance of SimCode: time 1.412e-06/2.963, allocations: 0 / 2.016 GB, free: 189.7 MB / 1.151 GB Notification: Performance of Templates: time 0.02036/2.983, allocations: 12.26 MB / 2.028 GB, free: 177.6 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Validation_TwoWayValveParameterization.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches