Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.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.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_latest_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_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.341/2.341, allocations: 390.5 MB / 398 MB, free: 10.91 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.00156/0.00156, allocations: 188.8 kB / 491.2 MB, free: 1.547 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.599/1.599, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.001224/0.001224, allocations: 95.75 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.007e-05/2.009e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3027, allocations: 143 MB / 1.212 GB, free: 39.57 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.161/1.463, allocations: 396.9 MB / 1.6 GB, free: 1.562 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002972/1.464, allocations: 100.3 kB / 1.6 GB, free: 1.508 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.449/2.912, allocations: 414.9 MB / 2.005 GB, free: 197.5 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.273e-06/2.912, allocations: 4 kB / 2.005 GB, free: 197.5 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.745e-05/2.913, allocations: 23.94 kB / 2.005 GB, free: 197.5 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.001701/2.914, allocations: 1.045 MB / 2.006 GB, free: 196.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/2.914, allocations: 8.031 kB / 2.006 GB, free: 196.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002183/2.915, allocations: 107.2 kB / 2.006 GB, free: 196.2 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000919/2.915, allocations: 0.5784 MB / 2.007 GB, free: 195.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/2.915, allocations: 12 kB / 2.007 GB, free: 195.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.161e-05/2.916, allocations: 36 kB / 2.007 GB, free: 195.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004276/2.916, allocations: 246.5 kB / 2.007 GB, free: 195.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004743/2.916, allocations: 308 kB / 2.007 GB, free: 195 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/2.916, allocations: 4 kB / 2.007 GB, free: 195 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/2.917, allocations: 0 / 2.007 GB, free: 195 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/2.917, allocations: 11.95 kB / 2.007 GB, free: 195 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.00243/2.919, allocations: 1.732 MB / 2.009 GB, free: 193.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002236/2.919, allocations: 162.4 kB / 2.009 GB, free: 193 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.768e-05/2.919, allocations: 73.12 kB / 2.009 GB, free: 192.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002294/2.92, allocations: 340.4 kB / 2.01 GB, free: 192.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.968e-05/2.92, allocations: 30.56 kB / 2.01 GB, free: 192.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=19): time 1.723e-06/2.92, allocations: 0 / 2.01 GB, free: 192.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=19): time 0.000564/2.92, allocations: 214 kB / 2.01 GB, free: 192.2 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.129e-05/2.92, allocations: 59.41 kB / 2.01 GB, free: 192.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004779/2.921, allocations: 495.7 kB / 2.01 GB, free: 191.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.155e-05/2.921, allocations: 29.64 kB / 2.011 GB, free: 191.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/2.921, allocations: 364.3 kB / 2.011 GB, free: 191.3 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.771e-05/2.921, allocations: 59.11 kB / 2.011 GB, free: 191.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.58e-05/2.921, allocations: 7.938 kB / 2.011 GB, free: 191.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.949e-05/2.921, allocations: 366.8 kB / 2.011 GB, free: 190.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/2.921, allocations: 84.73 kB / 2.011 GB, free: 190.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001702/2.921, allocations: 189.2 kB / 2.012 GB, free: 190.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002514/2.922, allocations: 122.8 kB / 2.012 GB, free: 190.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/2.922, allocations: 0 / 2.012 GB, free: 190.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000509/2.922, allocations: 334.7 kB / 2.012 GB, free: 190.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 6.996e-05/2.922, allocations: 278.9 kB / 2.012 GB, free: 189.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/2.922, allocations: 4 kB / 2.012 GB, free: 189.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/2.922, allocations: 4 kB / 2.012 GB, free: 189.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009129/2.923, allocations: 139.7 kB / 2.012 GB, free: 189.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009427/2.924, allocations: 2.387 MB / 2.015 GB, free: 187.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000651/2.925, allocations: 75.98 kB / 2.015 GB, free: 187.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.682e-05/2.925, allocations: 19.98 kB / 2.015 GB, free: 187.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.197e-06/2.925, allocations: 8 kB / 2.015 GB, free: 187.1 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003895/2.925, allocations: 224 kB / 2.015 GB, free: 186.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-06/2.925, allocations: 0 / 2.015 GB, free: 186.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.623e-06/2.925, allocations: 8 kB / 2.015 GB, free: 186.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003933/2.926, allocations: 103.9 kB / 2.015 GB, free: 186.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/2.926, allocations: 7.938 kB / 2.015 GB, free: 186.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000555/2.926, allocations: 59.78 kB / 2.015 GB, free: 186.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.223e-05/2.926, allocations: 23.98 kB / 2.015 GB, free: 186.7 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.000102/2.926, allocations: 113.7 kB / 2.015 GB, free: 186.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.454e-05/2.927, allocations: 63.16 kB / 2.015 GB, free: 186.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005333/2.927, allocations: 262.2 kB / 2.016 GB, free: 186.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.245e-06/2.927, allocations: 4 kB / 2.016 GB, free: 186.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/2.927, allocations: 0 / 2.016 GB, free: 186.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/2.927, allocations: 0 / 2.016 GB, free: 186.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/2.928, allocations: 0.7802 MB / 2.016 GB, free: 185.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.239e-06/2.928, allocations: 0 / 2.016 GB, free: 185.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/2.928, allocations: 83.89 kB / 2.016 GB, free: 185.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/2.928, allocations: 4 kB / 2.016 GB, free: 185.3 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/2.929, allocations: 7.984 kB / 2.016 GB, free: 185.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006441/2.929, allocations: 2.352 MB / 2.019 GB, free: 182.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/2.929, allocations: 4.031 kB / 2.019 GB, free: 182.8 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003871/2.93, allocations: 402.2 kB / 2.019 GB, free: 182.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002053/2.93, allocations: 172.1 kB / 2.019 GB, free: 182.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.229e-05/2.93, allocations: 4 kB / 2.019 GB, free: 182.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004164/2.93, allocations: 51.94 kB / 2.019 GB, free: 182.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.381e-05/2.93, allocations: 15.98 kB / 2.019 GB, free: 182.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.591e-05/2.93, allocations: 4 kB / 2.019 GB, free: 182.1 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0003332/2.931, allocations: 375.2 kB / 2.02 GB, free: 181.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/2.931, allocations: 0 / 2.02 GB, free: 181.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001087/2.932, allocations: 383.1 kB / 2.02 GB, free: 181.4 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.0008235/2.933, allocations: 489.9 kB / 2.021 GB, free: 180.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001111/2.934, allocations: 429.4 kB / 2.021 GB, free: 180.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/2.934, allocations: 4 kB / 2.021 GB, free: 180.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002563/2.934, allocations: 108 kB / 2.021 GB, free: 180.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/2.936, allocations: 282.6 kB / 2.021 GB, free: 180.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/2.937, allocations: 0.7123 MB / 2.022 GB, free: 179.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003015/2.937, allocations: 0.958 MB / 2.023 GB, free: 178.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0005555/2.938, allocations: 132.9 kB / 2.023 GB, free: 178.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.253e-05/2.938, allocations: 35.44 kB / 2.023 GB, free: 178.2 MB / 1.151 GB Notification: Performance of SimCode: time 4.91e-07/2.938, allocations: 0 / 2.023 GB, free: 178.2 MB / 1.151 GB Notification: Performance of Templates: time 0.01754/2.955, allocations: 12.26 MB / 2.035 GB, free: 166.1 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Validation_TwoWayValveParameterization.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches