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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 100.2 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009711/0.0009712, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.2 MB / 239.9 MB, free: 5.215 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.436/2.436, allocations: 390.3 MB / 0.6653 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003786/0.0003786, allocations: 12 kB / 0.8145 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8821/0.8825, allocations: 142.3 MB / 0.9535 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization): time 0.02532/0.9078, allocations: 25.82 MB / 0.9787 GB, free: 3.836 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01327/0.9212, allocations: 9.273 MB / 0.9878 GB, free: 12.46 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001706/0.9229, allocations: 22.66 kB / 0.9878 GB, free: 12.45 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001411/0.9244, allocations: 345.2 kB / 0.9881 GB, free: 12.16 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.004681/0.929, allocations: 1.134 MB / 0.9892 GB, free: 11.21 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003224/0.9323, allocations: 0.919 MB / 0.9901 GB, free: 10.56 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.002779/0.9351, allocations: 1.238 MB / 0.9913 GB, free: 9.312 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009848/0.9361, allocations: 0.542 MB / 0.9919 GB, free: 8.754 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001788/0.9379, allocations: 0.7825 MB / 0.9926 GB, free: 7.969 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007509/0.9386, allocations: 454.1 kB / 0.9931 GB, free: 7.523 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 7.427e-05/0.9387, allocations: 35.94 kB / 0.9931 GB, free: 7.488 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001023/0.9398, allocations: 383.4 kB / 0.9935 GB, free: 7.113 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001461/0.9399, allocations: 135.4 kB / 0.9936 GB, free: 6.98 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001908/0.9401, allocations: 177.3 kB / 0.9938 GB, free: 6.801 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0008244/0.9409, allocations: 0.711 MB / 0.9945 GB, free: 6.09 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.941, allocations: 4 kB / 0.9945 GB, free: 6.086 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.853e-06/0.941, allocations: 0 / 0.9945 GB, free: 6.086 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.179e-05/0.941, allocations: 0 / 0.9945 GB, free: 6.086 MB / 0.7481 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.001656/0.9426, allocations: 1.004 MB / 0.9954 GB, free: 5.031 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.9427, allocations: 12.03 kB / 0.9955 GB, free: 5.02 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.9428, allocations: 94.88 kB / 0.9955 GB, free: 4.926 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008113/0.9437, allocations: 0.5266 MB / 0.9961 GB, free: 4.359 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.844e-05/0.9437, allocations: 45 kB / 0.9961 GB, free: 4.316 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.814e-05/0.9438, allocations: 56 kB / 0.9962 GB, free: 4.262 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007168/0.9445, allocations: 414.3 kB / 0.9965 GB, free: 3.852 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.9445, allocations: 0 / 0.9965 GB, free: 3.852 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.951e-05/0.9446, allocations: 20 kB / 0.9966 GB, free: 3.832 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.9446, allocations: 12 kB / 0.9966 GB, free: 3.82 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006237/0.9452, allocations: 311.8 kB / 0.9969 GB, free: 3.516 MB / 0.7481 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.002707/0.9479, allocations: 1.854 MB / 0.9987 GB, free: 1.512 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003584/0.9483, allocations: 174.4 kB / 0.9989 GB, free: 1.332 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002778/0.9486, allocations: 340.4 kB / 0.9992 GB, free: 0.9258 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.116e-05/0.9487, allocations: 34.56 kB / 0.9992 GB, free: 0.8828 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=19): time 1.863e-06/0.9487, allocations: 0 / 0.9992 GB, free: 0.8828 MB / 0.7481 GB Notification: Performance of matching and sorting (n=19): time 0.0007163/0.9494, allocations: 322.8 kB / 0.9995 GB, free: 0.5625 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/0.9494, allocations: 59.34 kB / 0.9996 GB, free: 0.4922 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007582/0.9502, allocations: 0.6765 MB / 1 GB, free: 15.8 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 3.282e-05/0.9502, allocations: 33.7 kB / 1 GB, free: 15.77 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.000262/0.9505, allocations: 360.8 kB / 1.001 GB, free: 15.41 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 4.825e-05/0.9506, allocations: 67 kB / 1.001 GB, free: 15.34 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.963e-05/0.9506, allocations: 12 kB / 1.001 GB, free: 15.33 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001669/0.9508, allocations: 382.8 kB / 1.001 GB, free: 14.95 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/0.951, allocations: 104.6 kB / 1.001 GB, free: 14.85 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002982/0.9513, allocations: 179.5 kB / 1.001 GB, free: 14.65 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002671/0.9516, allocations: 125.5 kB / 1.001 GB, free: 14.53 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.9516, allocations: 0 / 1.001 GB, free: 14.53 MB / 0.7637 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006743/0.9523, allocations: 386.6 kB / 1.002 GB, free: 14.14 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/0.9524, allocations: 282.8 kB / 1.002 GB, free: 13.85 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.9524, allocations: 0 / 1.002 GB, free: 13.85 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.9525, allocations: 8 kB / 1.002 GB, free: 13.84 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.9535, allocations: 167.8 kB / 1.002 GB, free: 13.68 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.9549, allocations: 2.36 MB / 1.005 GB, free: 11.22 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005979/0.9555, allocations: 91.5 kB / 1.005 GB, free: 11.13 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.435e-05/0.9556, allocations: 15.98 kB / 1.005 GB, free: 11.12 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.9556, allocations: 5.25 kB / 1.005 GB, free: 11.11 MB / 0.7637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005764/0.9562, allocations: 292 kB / 1.005 GB, free: 10.83 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.9562, allocations: 11.94 kB / 1.005 GB, free: 10.82 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.648e-06/0.9562, allocations: 4 kB / 1.005 GB, free: 10.81 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004605/0.9567, allocations: 99.88 kB / 1.005 GB, free: 10.71 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.506e-06/0.9567, allocations: 0 / 1.005 GB, free: 10.71 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005187/0.9572, allocations: 83.53 kB / 1.005 GB, free: 10.63 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.108e-05/0.9573, allocations: 12 kB / 1.005 GB, free: 10.62 MB / 0.7637 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 () * Number of clocked 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.0003092/0.9576, allocations: 265 kB / 1.005 GB, free: 10.35 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.996e-05/0.9577, allocations: 67.34 kB / 1.005 GB, free: 10.29 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006859/0.9584, allocations: 329.5 kB / 1.006 GB, free: 9.961 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.9584, allocations: 7.984 kB / 1.006 GB, free: 9.953 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.9584, allocations: 0 / 1.006 GB, free: 9.953 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.9584, allocations: 0 / 1.006 GB, free: 9.953 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.9597, allocations: 0.8956 MB / 1.007 GB, free: 8.988 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.9598, allocations: 0 / 1.007 GB, free: 8.988 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003451/0.9601, allocations: 83.88 kB / 1.007 GB, free: 8.906 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.9601, allocations: 3.984 kB / 1.007 GB, free: 8.902 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.9601, allocations: 8 kB / 1.007 GB, free: 8.895 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001174/0.9613, allocations: 2.356 MB / 1.009 GB, free: 6.445 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.9613, allocations: 3.938 kB / 1.009 GB, free: 6.441 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005804/0.9619, allocations: 458.9 kB / 1.009 GB, free: 5.941 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002292/0.9622, allocations: 180 kB / 1.01 GB, free: 5.746 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.729e-05/0.9623, allocations: 15.89 kB / 1.01 GB, free: 5.73 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003915/0.9626, allocations: 51.94 kB / 1.01 GB, free: 5.68 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.817e-05/0.9627, allocations: 15.98 kB / 1.01 GB, free: 5.664 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.9627, allocations: 8 kB / 1.01 GB, free: 5.656 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0005495/0.9633, allocations: 474.9 kB / 1.01 GB, free: 5.195 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9633, allocations: 0 / 1.01 GB, free: 5.195 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0009042/0.9642, allocations: 351.1 kB / 1.011 GB, free: 4.852 MB / 0.7637 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 () * Number of clocked 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.0005052/0.9647, allocations: 246.2 kB / 1.011 GB, free: 4.613 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.001555/0.9663, allocations: 499.4 kB / 1.011 GB, free: 4.125 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.9663, allocations: 4 kB / 1.011 GB, free: 4.121 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0004014/0.9667, allocations: 144.1 kB / 1.011 GB, free: 3.98 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001872/0.9686, allocations: 366.9 kB / 1.012 GB, free: 3.625 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.9705, allocations: 1.333 MB / 1.013 GB, free: 2.258 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00048/0.971, allocations: 0.9492 MB / 1.014 GB, free: 1.281 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004621/0.9715, allocations: 124.4 kB / 1.014 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.9716, allocations: 51.42 kB / 1.014 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of SimCode: time 5.91e-07/0.9716, allocations: 0 / 1.014 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of Templates: time 0.02305/0.9946, allocations: 11.96 MB / 1.026 GB, free: 5.363 MB / 0.7794 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