Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002006/0.002006, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002207/0.002207, allocations: 188.4 kB / 16.67 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.87/2.87, allocations: 482.4 MB / 0.7548 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 72.09 kB / 1.083 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2808, allocations: 162.2 MB / 1.241 GB, free: 10.27 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.5096/0.7904, allocations: 17.44 MB / 1.258 GB, free: 7.086 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.005222/0.7957, allocations: 4.899 MB / 1.263 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002662/0.7959, allocations: 17.38 kB / 1.263 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006528/0.7966, allocations: 251.6 kB / 1.264 GB, free: 4.121 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001/0.7976, allocations: 0.5977 MB / 1.264 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.7991, allocations: 0.7337 MB / 1.265 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0008976/0.8, allocations: 0.9552 MB / 1.266 GB, free: 2.984 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004014/0.8004, allocations: 332.3 kB / 1.266 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006401/0.801, allocations: 471.7 kB / 1.267 GB, free: 2.625 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003832/0.8014, allocations: 304.9 kB / 1.267 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 7.328e-05/0.8015, allocations: 29.69 kB / 1.267 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00116/0.8027, allocations: 0.7253 MB / 1.268 GB, free: 2.25 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001196/0.8028, allocations: 128 kB / 1.268 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.803, allocations: 245.1 kB / 1.268 GB, free: 2.043 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001026/0.804, allocations: 0.8758 MB / 1.269 GB, free: 1.723 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.804, allocations: 4.562 kB / 1.269 GB, free: 1.719 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.162e-06/0.8041, allocations: 0.5938 kB / 1.269 GB, free: 1.719 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.885e-06/0.8041, allocations: 0 / 1.269 GB, free: 1.719 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001012/0.8051, allocations: 0.8991 MB / 1.27 GB, free: 1.012 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.8051, allocations: 10.38 kB / 1.27 GB, free: 1.012 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.559e-05/0.8052, allocations: 63.61 kB / 1.27 GB, free: 0.9531 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.8053, allocations: 63.22 kB / 1.27 GB, free: 0.9219 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005839/0.8059, allocations: 468.5 kB / 1.27 GB, free: 0.5859 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.809e-05/0.8059, allocations: 24.12 kB / 1.27 GB, free: 0.5703 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.105e-05/0.806, allocations: 29.69 kB / 1.27 GB, free: 0.5625 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004549/0.8064, allocations: 289.4 kB / 1.271 GB, free: 420 kB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.8065, allocations: 0.6094 kB / 1.271 GB, free: 420 kB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.224e-05/0.8065, allocations: 7.328 kB / 1.271 GB, free: 416 kB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.8065, allocations: 7.531 kB / 1.271 GB, free: 416 kB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004015/0.8069, allocations: 190.3 kB / 1.271 GB, free: 360 kB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001826/0.8087, allocations: 1.478 MB / 1.272 GB, free: 15.23 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003201/0.8091, allocations: 157.7 kB / 1.272 GB, free: 15.16 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.8093, allocations: 84.27 kB / 1.272 GB, free: 15.13 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001659/0.8109, allocations: 1.27 MB / 1.274 GB, free: 13.91 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.811, allocations: 45.44 kB / 1.274 GB, free: 13.86 MB / 1.014 GB Notification: Performance of pre-optimization done (n=15): time 1.332e-06/0.811, allocations: 0 / 1.274 GB, free: 13.86 MB / 1.014 GB Notification: Performance of matching and sorting (n=15): time 0.0006523/0.8116, allocations: 251.5 kB / 1.274 GB, free: 13.75 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/0.8117, allocations: 53.88 kB / 1.274 GB, free: 13.69 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006782/0.8124, allocations: 0.5805 MB / 1.275 GB, free: 13.43 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.8124, allocations: 31.77 kB / 1.275 GB, free: 13.4 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/0.8127, allocations: 273.7 kB / 1.275 GB, free: 13.18 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 5.381e-05/0.8127, allocations: 56.89 kB / 1.275 GB, free: 13.13 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001059/0.8128, allocations: 69.98 kB / 1.275 GB, free: 13.09 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001879/0.813, allocations: 355.5 kB / 1.275 GB, free: 12.76 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.8132, allocations: 83.55 kB / 1.275 GB, free: 12.73 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003314/0.8136, allocations: 213.2 kB / 1.276 GB, free: 12.56 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004386/0.814, allocations: 230.2 kB / 1.276 GB, free: 12.41 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.814, allocations: 4 kB / 1.276 GB, free: 12.41 MB / 1.014 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.00061/0.8147, allocations: 312.6 kB / 1.276 GB, free: 12.27 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.8147, allocations: 11.47 kB / 1.276 GB, free: 12.27 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.8147, allocations: 5.438 kB / 1.276 GB, free: 12.27 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.8147, allocations: 1.406 kB / 1.276 GB, free: 12.27 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002482/0.815, allocations: 65.36 kB / 1.276 GB, free: 12.26 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.815, allocations: 4.734 kB / 1.276 GB, free: 12.26 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.8153, allocations: 50.16 kB / 1.276 GB, free: 12.23 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/0.8154, allocations: 12.78 kB / 1.276 GB, free: 12.23 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003249/0.8157, allocations: 213.8 kB / 1.276 GB, free: 12.11 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000312/0.816, allocations: 214.2 kB / 1.277 GB, free: 11.94 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004205/0.8164, allocations: 229.3 kB / 1.277 GB, free: 11.79 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.944e-06/0.8164, allocations: 4.938 kB / 1.277 GB, free: 11.79 MB / 1.014 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005914/0.817, allocations: 309.3 kB / 1.277 GB, free: 11.66 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/0.8171, allocations: 6.719 kB / 1.277 GB, free: 11.66 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.8171, allocations: 6.062 kB / 1.277 GB, free: 11.65 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.009e-06/0.8171, allocations: 10.81 kB / 1.277 GB, free: 11.65 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002237/0.8173, allocations: 60.75 kB / 1.277 GB, free: 11.64 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.8173, allocations: 6.609 kB / 1.277 GB, free: 11.64 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003398/0.8177, allocations: 43.97 kB / 1.277 GB, free: 11.62 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.624e-05/0.8177, allocations: 16.27 kB / 1.277 GB, free: 11.62 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001348/0.8179, allocations: 195.7 kB / 1.278 GB, free: 11.43 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.215e-05/0.8179, allocations: 53.89 kB / 1.278 GB, free: 11.39 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005702/0.8185, allocations: 265.8 kB / 1.278 GB, free: 11.28 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.8185, allocations: 2.688 kB / 1.278 GB, free: 11.28 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.8185, allocations: 0 / 1.278 GB, free: 11.28 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.8186, allocations: 1.312 kB / 1.278 GB, free: 11.28 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.8196, allocations: 0.7362 MB / 1.279 GB, free: 10.79 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.8196, allocations: 2.016 kB / 1.279 GB, free: 10.79 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001307/0.8198, allocations: 31.42 kB / 1.279 GB, free: 10.79 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.8198, allocations: 3.219 kB / 1.279 GB, free: 10.79 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.8198, allocations: 3.234 kB / 1.279 GB, free: 10.79 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.8198, allocations: 7.562 kB / 1.279 GB, free: 10.78 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.8198, allocations: 0.75 kB / 1.279 GB, free: 10.78 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005276/0.8204, allocations: 367.1 kB / 1.279 GB, free: 10.53 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.8205, allocations: 142.9 kB / 1.279 GB, free: 10.4 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.8e-05/0.8206, allocations: 4.656 kB / 1.279 GB, free: 10.39 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002012/0.8208, allocations: 15.64 kB / 1.279 GB, free: 10.39 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/0.8209, allocations: 18.28 kB / 1.279 GB, free: 10.38 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.8209, allocations: 7.203 kB / 1.279 GB, free: 10.38 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0004833/0.8214, allocations: 416.8 kB / 1.28 GB, free: 10.2 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8214, allocations: 0 / 1.28 GB, free: 10.2 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0006544/0.822, allocations: 229.9 kB / 1.28 GB, free: 10.16 MB / 1.014 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002328/0.8244, allocations: 1.271 MB / 1.281 GB, free: 9.262 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0007432/0.8251, allocations: 327.2 kB / 1.281 GB, free: 9.168 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.8251, allocations: 0.9375 kB / 1.281 GB, free: 9.168 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002426/0.8254, allocations: 91.7 kB / 1.281 GB, free: 9.141 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.8267, allocations: 257.2 kB / 1.282 GB, free: 9.059 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005408/0.8321, allocations: 3.942 MB / 1.285 GB, free: 6.723 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005053/0.8326, allocations: 0.8474 MB / 1.286 GB, free: 6.004 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0003051/0.8329, allocations: 98.23 kB / 1.286 GB, free: 5.984 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002318/0.8331, allocations: 163.7 kB / 1.287 GB, free: 5.867 MB / 1.014 GB Notification: Performance of SimCode: time 2.91e-07/0.8332, allocations: 0 / 1.287 GB, free: 5.867 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03945/0.8726, allocations: 15.01 MB / 1.301 GB, free: 4.23 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.504/9.377, allocations: 4.969 kB / 1.301 GB, free: 4.227 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches