Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.TwoWayValvesTable,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",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.004125/0.004125, allocations: 100.2 kB / 15.73 MB, free: 6.047 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.001228/0.001228, allocations: 195.4 kB / 16.67 MB, free: 5.949 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.77/2.77, allocations: 482.4 MB / 0.7548 GB, free: 6.863 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 65.06 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2847, allocations: 162.2 MB / 1.241 GB, free: 9.141 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01789/0.3027, allocations: 15.5 MB / 1.257 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.006231/0.3089, allocations: 4.3 MB / 1.261 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002397/0.3092, allocations: 15.88 kB / 1.261 GB, free: 5.258 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0007746/0.31, allocations: 266.3 kB / 1.261 GB, free: 4.996 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001214/0.3112, allocations: 0.5907 MB / 1.262 GB, free: 4.402 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.3128, allocations: 0.7118 MB / 1.262 GB, free: 3.699 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001217/0.3141, allocations: 1.021 MB / 1.263 GB, free: 2.676 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000475/0.3145, allocations: 327.8 kB / 1.264 GB, free: 2.344 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007298/0.3153, allocations: 466.1 kB / 1.264 GB, free: 1.887 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004337/0.3157, allocations: 306.6 kB / 1.264 GB, free: 1.586 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 6.276e-05/0.3158, allocations: 28 kB / 1.264 GB, free: 1.559 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001049/0.3169, allocations: 0.6278 MB / 1.265 GB, free: 0.9297 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000127/0.317, allocations: 103.6 kB / 1.265 GB, free: 0.8281 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000236/0.3172, allocations: 222.8 kB / 1.265 GB, free: 0.6094 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.3183, allocations: 0.759 MB / 1.266 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3183, allocations: 0 / 1.266 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3183, allocations: 3.938 kB / 1.266 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.064e-05/0.3183, allocations: 0 / 1.266 GB, free: 15.84 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001244/0.3196, allocations: 0.8437 MB / 1.267 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3196, allocations: 8.031 kB / 1.267 GB, free: 14.94 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.291e-05/0.3197, allocations: 58.73 kB / 1.267 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.3198, allocations: 60.56 kB / 1.267 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006531/0.3205, allocations: 433.7 kB / 1.267 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.599e-05/0.3205, allocations: 20.44 kB / 1.267 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.625e-05/0.3206, allocations: 28 kB / 1.267 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004534/0.321, allocations: 219.2 kB / 1.268 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.321, allocations: 0 / 1.268 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.3211, allocations: 4 kB / 1.268 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.3211, allocations: 4 kB / 1.268 GB, free: 14.08 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000412/0.3215, allocations: 169.6 kB / 1.268 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.3231, allocations: 0.9421 MB / 1.269 GB, free: 12.89 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003087/0.3234, allocations: 130.5 kB / 1.269 GB, free: 12.75 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.3236, allocations: 76.75 kB / 1.269 GB, free: 12.68 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003142/0.324, allocations: 332.4 kB / 1.269 GB, free: 12.28 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.324, allocations: 38.55 kB / 1.269 GB, free: 12.23 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.324, allocations: 0 / 1.269 GB, free: 12.23 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14): time 0.000638/0.3246, allocations: 241.2 kB / 1.27 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.3247, allocations: 55.41 kB / 1.27 GB, free: 11.92 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005334/0.3252, allocations: 465.9 kB / 1.27 GB, free: 11.46 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.3253, allocations: 29.7 kB / 1.27 GB, free: 11.43 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.3255, allocations: 224.8 kB / 1.27 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.542e-05/0.3255, allocations: 55.59 kB / 1.27 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.564e-05/0.3256, allocations: 57.69 kB / 1.27 GB, free: 11.08 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001797/0.3258, allocations: 354.7 kB / 1.271 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001986/0.326, allocations: 72.81 kB / 1.271 GB, free: 10.65 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002907/0.3263, allocations: 155.5 kB / 1.271 GB, free: 10.47 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003876/0.3267, allocations: 160.6 kB / 1.271 GB, free: 10.31 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3267, allocations: 0 / 1.271 GB, free: 10.31 MB / 0.9981 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005609/0.3273, allocations: 265.2 kB / 1.271 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.3273, allocations: 5.406 kB / 1.271 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.3273, allocations: 3.938 kB / 1.271 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.3273, allocations: 4 kB / 1.271 GB, free: 10.03 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002421/0.3276, allocations: 43.91 kB / 1.271 GB, free: 9.988 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.3276, allocations: 4 kB / 1.271 GB, free: 9.984 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003038/0.3279, allocations: 39.81 kB / 1.271 GB, free: 9.945 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.016e-05/0.328, allocations: 12 kB / 1.271 GB, free: 9.934 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003099/0.3283, allocations: 196 kB / 1.272 GB, free: 9.738 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002784/0.3286, allocations: 155.2 kB / 1.272 GB, free: 9.555 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003757/0.3289, allocations: 173.1 kB / 1.272 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.142e-06/0.329, allocations: 0 / 1.272 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.000541/0.3295, allocations: 249.2 kB / 1.272 GB, free: 9.121 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/0.3295, allocations: 8 kB / 1.272 GB, free: 9.113 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.763e-06/0.3295, allocations: 0 / 1.272 GB, free: 9.113 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.378e-06/0.3295, allocations: 4 kB / 1.272 GB, free: 9.109 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002082/0.3297, allocations: 43.91 kB / 1.272 GB, free: 9.066 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.3298, allocations: 4 kB / 1.272 GB, free: 9.062 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003383/0.3301, allocations: 35.91 kB / 1.272 GB, free: 9.027 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.3301, allocations: 8.062 kB / 1.272 GB, free: 9.02 MB / 0.9981 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 (24): * Single equations (assignments): 24 * 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.0001315/0.3303, allocations: 204.1 kB / 1.273 GB, free: 8.812 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.607e-05/0.3303, allocations: 47.67 kB / 1.273 GB, free: 8.766 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005789/0.3309, allocations: 245.1 kB / 1.273 GB, free: 8.52 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.331, allocations: 192 / 1.273 GB, free: 8.52 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.331, allocations: 4 kB / 1.273 GB, free: 8.516 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.331, allocations: 11.94 kB / 1.273 GB, free: 8.504 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.332, allocations: 0.7074 MB / 1.273 GB, free: 7.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.3321, allocations: 4 kB / 1.273 GB, free: 7.727 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.3322, allocations: 28.09 kB / 1.274 GB, free: 7.699 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.3322, allocations: 8 kB / 1.274 GB, free: 7.691 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.3322, allocations: 11.94 kB / 1.274 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.3322, allocations: 0 / 1.274 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.3322, allocations: 0 / 1.274 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005285/0.3328, allocations: 348.4 kB / 1.274 GB, free: 7.312 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.3329, allocations: 136.8 kB / 1.274 GB, free: 7.16 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.16e-05/0.333, allocations: 7.938 kB / 1.274 GB, free: 7.152 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.3332, allocations: 11.98 kB / 1.274 GB, free: 7.141 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.72e-05/0.3333, allocations: 11.98 kB / 1.274 GB, free: 7.129 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.3333, allocations: 8.141 kB / 1.274 GB, free: 7.121 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003835/0.3337, allocations: 331.1 kB / 1.274 GB, free: 6.805 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3337, allocations: 3.938 kB / 1.274 GB, free: 6.801 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0006083/0.3343, allocations: 195.6 kB / 1.275 GB, free: 6.609 MB / 0.9981 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 (16): * Single equations (assignments): 14 * 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.002317/0.3366, allocations: 1.255 MB / 1.276 GB, free: 5.453 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0006732/0.3373, allocations: 259.7 kB / 1.276 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3373, allocations: 0 / 1.276 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002047/0.3375, allocations: 92.2 kB / 1.276 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.3386, allocations: 199.6 kB / 1.276 GB, free: 4.922 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004534/0.3431, allocations: 3.312 MB / 1.28 GB, free: 1.492 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.3436, allocations: 0.8309 MB / 1.28 GB, free: 0.6328 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002527/0.3438, allocations: 79.53 kB / 1.28 GB, free: 0.5547 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001993/0.3441, allocations: 143.3 kB / 1.281 GB, free: 424 kB / 0.9981 GB Notification: Performance of SimCode: time 2.7e-07/0.3441, allocations: 0 / 1.281 GB, free: 424 kB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03707/0.3811, allocations: 12.75 MB / 1.293 GB, free: 3.879 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.312/8.694, allocations: 8.797 kB / 1.293 GB, free: 3.875 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_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_TwoWayValvesTable.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches