Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 99.62 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.0009273/0.0009275, allocations: 177.3 kB / 15.95 MB, free: 216 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.455/1.455, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.66/2.66, allocations: 436.5 MB / 0.7104 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003754/0.0003754, allocations: 8 kB / 0.8707 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7603/0.7607, allocations: 153.7 MB / 1.021 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.01622/0.7769, allocations: 16.31 MB / 1.037 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.007133/0.7841, allocations: 4.469 MB / 1.041 GB, free: 12.27 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008762/0.785, allocations: 15.88 kB / 1.041 GB, free: 12.25 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0008913/0.7859, allocations: 246.6 kB / 1.041 GB, free: 12.01 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.002552/0.7885, allocations: 0.814 MB / 1.042 GB, free: 11.19 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.002424/0.7909, allocations: 0.9312 MB / 1.043 GB, free: 10.27 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001563/0.7925, allocations: 0.9505 MB / 1.044 GB, free: 9.32 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005872/0.7931, allocations: 419.2 kB / 1.044 GB, free: 8.898 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008183/0.7939, allocations: 0.5022 MB / 1.045 GB, free: 8.395 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004979/0.7945, allocations: 406.3 kB / 1.045 GB, free: 7.996 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.726e-05/0.7945, allocations: 28 kB / 1.045 GB, free: 7.969 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001263/0.7958, allocations: 0.6396 MB / 1.046 GB, free: 7.328 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001353/0.7959, allocations: 127.5 kB / 1.046 GB, free: 7.203 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.7961, allocations: 153.3 kB / 1.046 GB, free: 7.047 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0008709/0.797, allocations: 0.7539 MB / 1.047 GB, free: 6.293 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.797, allocations: 0 / 1.047 GB, free: 6.293 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.202e-06/0.797, allocations: 0 / 1.047 GB, free: 6.293 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.065e-06/0.797, allocations: 4 kB / 1.047 GB, free: 6.289 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001794/0.7988, allocations: 0.9967 MB / 1.048 GB, free: 5.242 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.7989, allocations: 11.98 kB / 1.048 GB, free: 5.23 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.799, allocations: 82.97 kB / 1.048 GB, free: 5.148 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007321/0.7998, allocations: 486.6 kB / 1.048 GB, free: 4.633 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/0.7998, allocations: 41 kB / 1.048 GB, free: 4.594 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.928e-05/0.7999, allocations: 48 kB / 1.049 GB, free: 4.547 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.8009, allocations: 0.6294 MB / 1.049 GB, free: 3.852 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.8009, allocations: 7.922 kB / 1.049 GB, free: 3.844 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.756e-05/0.801, allocations: 24 kB / 1.049 GB, free: 3.82 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.801, allocations: 12 kB / 1.049 GB, free: 3.809 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.8021, allocations: 0.515 MB / 1.05 GB, free: 3.297 MB / 0.795 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.003518/0.8056, allocations: 3.205 MB / 1.053 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007382/0.8063, allocations: 358.9 kB / 1.053 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004186/0.8068, allocations: 344.4 kB / 1.054 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.8068, allocations: 38.66 kB / 1.054 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=38): time 2.144e-06/0.8068, allocations: 7.938 kB / 1.054 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of matching and sorting (n=38): time 0.002234/0.8091, allocations: 0.8541 MB / 1.054 GB, free: 14.19 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.8091, allocations: 59.34 kB / 1.054 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006559/0.8098, allocations: 0.5822 MB / 1.055 GB, free: 13.53 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.519e-05/0.8099, allocations: 33.7 kB / 1.055 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.000281/0.8101, allocations: 332.4 kB / 1.055 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.8103, allocations: 126.2 kB / 1.055 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.913e-05/0.8103, allocations: 15.94 kB / 1.055 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001717/0.8105, allocations: 378.7 kB / 1.056 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000503/0.811, allocations: 221.2 kB / 1.056 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000591/0.8116, allocations: 372 kB / 1.056 GB, free: 12 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005394/0.8121, allocations: 256.7 kB / 1.057 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.8121, allocations: 0 / 1.057 GB, free: 11.75 MB / 0.8106 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001445/0.8136, allocations: 0.7339 MB / 1.057 GB, free: 11 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007056/0.8143, allocations: 1.744 MB / 1.059 GB, free: 9.121 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.8143, allocations: 7.984 kB / 1.059 GB, free: 9.113 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006212/0.815, allocations: 148.8 kB / 1.059 GB, free: 8.965 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006549/0.8156, allocations: 159.7 kB / 1.059 GB, free: 8.809 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006444/0.8163, allocations: 0.6304 MB / 1.06 GB, free: 8.152 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006372/0.8169, allocations: 107.2 kB / 1.06 GB, free: 8.047 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.166e-05/0.817, allocations: 35.98 kB / 1.06 GB, free: 8.012 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.817, allocations: 4 kB / 1.06 GB, free: 8.008 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001237/0.8183, allocations: 0.619 MB / 1.061 GB, free: 7.391 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.8183, allocations: 4 kB / 1.061 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.8183, allocations: 8 kB / 1.061 GB, free: 7.379 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005879/0.8189, allocations: 164.2 kB / 1.061 GB, free: 7.219 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.8189, allocations: 15.94 kB / 1.061 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005616/0.8195, allocations: 87.53 kB / 1.061 GB, free: 7.117 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.752e-05/0.8195, allocations: 35.98 kB / 1.061 GB, free: 7.082 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003035/0.8198, allocations: 264.9 kB / 1.061 GB, free: 6.812 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.446e-05/0.8199, allocations: 59.25 kB / 1.061 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.8214, allocations: 0.6816 MB / 1.062 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.8215, allocations: 11.95 kB / 1.062 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.8215, allocations: 0 / 1.062 GB, free: 6.051 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.8215, allocations: 3.984 kB / 1.062 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002472/0.824, allocations: 1.394 MB / 1.063 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.824, allocations: 4 kB / 1.063 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/0.8244, allocations: 95.97 kB / 1.063 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004117/0.8248, allocations: 128.8 kB / 1.064 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.992e-05/0.8248, allocations: 16 kB / 1.064 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005886/0.8254, allocations: 0.6381 MB / 1.064 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.8254, allocations: 0 / 1.064 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/0.8268, allocations: 0.7643 MB / 1.065 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002864/0.8271, allocations: 200.1 kB / 1.065 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.142e-05/0.8272, allocations: 8 kB / 1.065 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004506/0.8276, allocations: 52.02 kB / 1.065 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.602e-05/0.8277, allocations: 39.91 kB / 1.065 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-05/0.8278, allocations: 19.98 kB / 1.065 GB, free: 2.531 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004485/0.8282, allocations: 399.1 kB / 1.066 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8282, allocations: 4 kB / 1.066 GB, free: 2.145 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001197/0.8294, allocations: 387.3 kB / 1.066 GB, free: 1.766 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007225/0.8302, allocations: 294.7 kB / 1.066 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002074/0.8322, allocations: 0.9213 MB / 1.067 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.8323, allocations: 0 / 1.067 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006756/0.8329, allocations: 303.8 kB / 1.068 GB, free: 264 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.8343, allocations: 258.8 kB / 1.068 GB, free: 8 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.8362, allocations: 1.277 MB / 1.069 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004551/0.8367, allocations: 0.9275 MB / 1.07 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0005884/0.8373, allocations: 162.6 kB / 1.07 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.8374, allocations: 63.41 kB / 1.07 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of SimCode: time 4.91e-07/0.8374, allocations: 0 / 1.07 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of Templates: time 0.02193/0.8594, allocations: 11.73 MB / 1.082 GB, free: 1.961 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches