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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 99.86 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.001069/0.001069, 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.487/1.487, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.779/2.779, allocations: 436.5 MB / 0.7104 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003325, allocations: 8 kB / 0.8708 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8479/0.8482, allocations: 153.7 MB / 1.021 GB, free: 1.262 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Validation.TwoWayValveParameterization): time 0.02751/0.8758, allocations: 25.82 MB / 1.046 GB, free: 7.367 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01353/0.8894, allocations: 9.263 MB / 1.055 GB, free: 14.09 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001338/0.8908, allocations: 23.81 kB / 1.055 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001387/0.8922, allocations: 346.2 kB / 1.055 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.003866/0.896, allocations: 1.14 MB / 1.057 GB, free: 12.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.002808/0.8989, allocations: 0.9123 MB / 1.057 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.002824/0.9017, allocations: 1.242 MB / 1.059 GB, free: 10.45 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001271/0.903, allocations: 0.5344 MB / 1.059 GB, free: 9.898 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002202/0.9052, allocations: 0.7786 MB / 1.06 GB, free: 9.117 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001175/0.9064, allocations: 470 kB / 1.06 GB, free: 8.656 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0002044/0.9066, allocations: 28 kB / 1.06 GB, free: 8.629 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001411/0.908, allocations: 383.5 kB / 1.061 GB, free: 8.254 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0003148/0.9083, allocations: 123.4 kB / 1.061 GB, free: 8.133 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0004368/0.9088, allocations: 185.2 kB / 1.061 GB, free: 7.945 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00124/0.91, allocations: 0.715 MB / 1.062 GB, free: 7.23 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.9101, allocations: 4 kB / 1.062 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.784e-06/0.9101, allocations: 0 / 1.062 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.436e-05/0.9101, allocations: 0 / 1.062 GB, free: 7.227 MB / 0.8106 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.002302/0.9124, allocations: 1.012 MB / 1.063 GB, free: 6.16 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.9125, allocations: 11.98 kB / 1.063 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002912/0.9128, allocations: 98.86 kB / 1.063 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.9139, allocations: 0.5343 MB / 1.063 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.639e-05/0.9139, allocations: 41 kB / 1.063 GB, free: 5.438 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.775e-05/0.914, allocations: 56 kB / 1.063 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008298/0.9149, allocations: 410.4 kB / 1.064 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.9149, allocations: 0 / 1.064 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.078e-05/0.9149, allocations: 16 kB / 1.064 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.915, allocations: 15.98 kB / 1.064 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006895/0.9157, allocations: 311.8 kB / 1.064 GB, free: 4.641 MB / 0.8106 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.003296/0.919, allocations: 1.862 MB / 1.066 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004274/0.9194, allocations: 170.4 kB / 1.066 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003263/0.9197, allocations: 336.4 kB / 1.066 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.9198, allocations: 42.84 kB / 1.067 GB, free: 2 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=19): time 2.585e-06/0.9198, allocations: 0 / 1.067 GB, free: 2 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.0008322/0.9206, allocations: 325.9 kB / 1.067 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.9207, allocations: 55.41 kB / 1.067 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009004/0.9216, allocations: 0.6804 MB / 1.068 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.628e-05/0.9216, allocations: 29.7 kB / 1.068 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003237/0.922, allocations: 368.7 kB / 1.068 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.048e-05/0.922, allocations: 63.09 kB / 1.068 GB, free: 468 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.693e-05/0.9221, allocations: 4 kB / 1.068 GB, free: 464 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0002318/0.9223, allocations: 374.8 kB / 1.068 GB, free: 80 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000274/0.9226, allocations: 112.8 kB / 1.068 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003146/0.9229, allocations: 179.4 kB / 1.069 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002819/0.9232, allocations: 137.5 kB / 1.069 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.9232, allocations: 0 / 1.069 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008308/0.924, allocations: 390.6 kB / 1.069 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001937/0.9243, allocations: 278.9 kB / 1.069 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.9243, allocations: 0 / 1.069 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/0.9243, allocations: 0 / 1.069 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.9254, allocations: 163.9 kB / 1.07 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001761/0.9272, allocations: 2.364 MB / 1.072 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007124/0.9279, allocations: 87.78 kB / 1.072 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.408e-05/0.928, allocations: 15.98 kB / 1.072 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.928, allocations: 8 kB / 1.072 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006061/0.9286, allocations: 292 kB / 1.072 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.9286, allocations: 0 / 1.072 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.227e-06/0.9286, allocations: 4 kB / 1.072 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004204/0.9291, allocations: 103.9 kB / 1.072 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.9291, allocations: 7.938 kB / 1.072 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005855/0.9297, allocations: 79.53 kB / 1.072 GB, free: 11.75 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.702e-05/0.9297, allocations: 16 kB / 1.072 GB, free: 11.73 MB / 0.8262 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.0004317/0.9302, allocations: 265 kB / 1.073 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.9303, allocations: 67.27 kB / 1.073 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007245/0.931, allocations: 324.7 kB / 1.073 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.9311, allocations: 4 kB / 1.073 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.9311, allocations: 4 kB / 1.073 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.9311, allocations: 0 / 1.073 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001636/0.9327, allocations: 0.9108 MB / 1.074 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.9327, allocations: 4 kB / 1.074 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/0.9331, allocations: 71.88 kB / 1.074 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.9331, allocations: 4 kB / 1.074 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.768e-05/0.9331, allocations: 4 kB / 1.074 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001387/0.9345, allocations: 2.356 MB / 1.076 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.9345, allocations: 8.125 kB / 1.076 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006508/0.9352, allocations: 462.6 kB / 1.077 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003097/0.9355, allocations: 168.1 kB / 1.077 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.9356, allocations: 8 kB / 1.077 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004802/0.9361, allocations: 47.94 kB / 1.077 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.247e-05/0.9362, allocations: 19.89 kB / 1.077 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.9362, allocations: 12 kB / 1.077 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0007325/0.937, allocations: 471 kB / 1.078 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.937, allocations: 0 / 1.078 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001176/0.9382, allocations: 351.1 kB / 1.078 GB, free: 5.984 MB / 0.8262 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.0006687/0.9388, allocations: 237.3 kB / 1.078 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001806/0.9407, allocations: 0.4957 MB / 1.079 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.9407, allocations: 0 / 1.079 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004207/0.9411, allocations: 141.4 kB / 1.079 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002043/0.9432, allocations: 380.1 kB / 1.079 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002448/0.9456, allocations: 1.33 MB / 1.08 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006795/0.9463, allocations: 0.9491 MB / 1.081 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0005888/0.9469, allocations: 113.2 kB / 1.081 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.9471, allocations: 55.42 kB / 1.081 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of SimCode: time 5.61e-07/0.9471, allocations: 0 / 1.081 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of Templates: time 0.02347/0.9705, allocations: 11.97 MB / 1.093 GB, free: 6.48 MB / 0.8419 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