Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",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.007571/0.007571, allocations: 102.6 kB / 15.73 MB, free: 5.992 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.002054/0.002054, allocations: 190.2 kB / 16.67 MB, free: 5.91 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.493/1.493, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.778/2.778, allocations: 482.4 MB / 0.7548 GB, free: 6.863 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002009/0.002009, allocations: 68.33 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2733, allocations: 162.2 MB / 1.241 GB, free: 9.266 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03297/0.3063, allocations: 29.66 MB / 1.27 GB, free: 11.5 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01126/0.3176, allocations: 8.044 MB / 1.278 GB, free: 3.438 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008133/0.3184, allocations: 35.75 kB / 1.278 GB, free: 3.402 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.3195, allocations: 417 kB / 1.279 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.003188/0.3227, allocations: 1.355 MB / 1.28 GB, free: 1.633 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002689/0.3254, allocations: 1.129 MB / 1.281 GB, free: 0.5117 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.004236/0.3296, allocations: 3.509 MB / 1.285 GB, free: 12.99 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001867/0.3315, allocations: 1.318 MB / 1.286 GB, free: 11.66 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002664/0.3342, allocations: 1.71 MB / 1.288 GB, free: 9.941 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002955/0.3371, allocations: 1.589 MB / 1.289 GB, free: 8.348 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000482/0.3376, allocations: 124 kB / 1.289 GB, free: 8.227 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001991/0.3396, allocations: 1.01 MB / 1.29 GB, free: 7.215 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0005599/0.3402, allocations: 410.7 kB / 1.291 GB, free: 6.812 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.00107/0.3413, allocations: 0.7351 MB / 1.291 GB, free: 6.074 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.002681/0.344, allocations: 2.184 MB / 1.293 GB, free: 3.883 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.344, allocations: 4 kB / 1.293 GB, free: 3.879 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.082e-06/0.344, allocations: 0 / 1.293 GB, free: 3.879 MB / 1.014 GB Notification: Performance of Transformations before backend: time 3.655e-05/0.344, allocations: 0 / 1.293 GB, free: 3.879 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002925/0.347, allocations: 1.681 MB / 1.295 GB, free: 2.145 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.347, allocations: 8.031 kB / 1.295 GB, free: 2.137 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001184/0.3471, allocations: 106.7 kB / 1.295 GB, free: 2.023 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003651/0.3475, allocations: 155.9 kB / 1.295 GB, free: 1.871 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001666/0.3492, allocations: 0.9188 MB / 1.296 GB, free: 0.9102 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.835e-05/0.3493, allocations: 81.31 kB / 1.296 GB, free: 0.832 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002025/0.3495, allocations: 120 kB / 1.296 GB, free: 0.7148 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.3506, allocations: 0.6317 MB / 1.297 GB, free: 56 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.3506, allocations: 0 / 1.297 GB, free: 56 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.531e-05/0.3507, allocations: 31.94 kB / 1.297 GB, free: 24 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.3507, allocations: 16 kB / 1.297 GB, free: 8 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009704/0.3517, allocations: 464.9 kB / 1.298 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004407/0.3561, allocations: 2.861 MB / 1.3 GB, free: 12.54 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006495/0.3567, allocations: 307.3 kB / 1.301 GB, free: 12.23 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003184/0.3571, allocations: 141.4 kB / 1.301 GB, free: 12.09 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003248/0.3574, allocations: 348.6 kB / 1.301 GB, free: 11.67 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/0.3575, allocations: 46.77 kB / 1.301 GB, free: 11.62 MB / 1.029 GB Notification: Performance of pre-optimization done (n=33): time 1.482e-06/0.3575, allocations: 0 / 1.301 GB, free: 11.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=33): time 0.001312/0.3588, allocations: 0.5336 MB / 1.302 GB, free: 11.08 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.3588, allocations: 55.41 kB / 1.302 GB, free: 11.01 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/0.3599, allocations: 0.8703 MB / 1.303 GB, free: 10.12 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.36, allocations: 53.7 kB / 1.303 GB, free: 10.06 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004674/0.3605, allocations: 499.2 kB / 1.303 GB, free: 9.57 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 9.857e-05/0.3606, allocations: 111 kB / 1.303 GB, free: 9.461 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004524/0.3611, allocations: 295.1 kB / 1.303 GB, free: 9.164 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.3612, allocations: 334.1 kB / 1.304 GB, free: 8.832 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000439/0.3617, allocations: 189.4 kB / 1.304 GB, free: 8.645 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001547/0.3632, allocations: 1.159 MB / 1.305 GB, free: 7.125 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000898/0.3641, allocations: 451.4 kB / 1.306 GB, free: 6.656 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3642, allocations: 0 / 1.306 GB, free: 6.656 MB / 1.029 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001405/0.3656, allocations: 0.6545 MB / 1.306 GB, free: 5.996 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.3656, allocations: 8 kB / 1.306 GB, free: 5.988 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3656, allocations: 0 / 1.306 GB, free: 5.988 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.3656, allocations: 4 kB / 1.306 GB, free: 5.984 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001451/0.3671, allocations: 235.8 kB / 1.306 GB, free: 5.754 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.369, allocations: 2.957 MB / 1.309 GB, free: 2.68 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003268/0.3722, allocations: 0.7068 MB / 1.31 GB, free: 1.973 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.444e-05/0.3723, allocations: 27.98 kB / 1.31 GB, free: 1.945 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006913/0.373, allocations: 369.3 kB / 1.31 GB, free: 1.578 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001561/0.3746, allocations: 1.154 MB / 1.311 GB, free: 52 kB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009148/0.3755, allocations: 464.9 kB / 1.312 GB, free: 15.55 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.174e-06/0.3755, allocations: 0 / 1.312 GB, free: 15.55 MB / 1.045 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.00148/0.377, allocations: 0.6553 MB / 1.313 GB, free: 14.89 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.377, allocations: 4 kB / 1.313 GB, free: 14.89 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.377, allocations: 4.312 kB / 1.313 GB, free: 14.88 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.492e-06/0.377, allocations: 8 kB / 1.313 GB, free: 14.88 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007017/0.3778, allocations: 159.8 kB / 1.313 GB, free: 14.72 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.3778, allocations: 11.94 kB / 1.313 GB, free: 14.71 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004551/0.3823, allocations: 0.9613 MB / 1.314 GB, free: 13.75 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.452e-05/0.3824, allocations: 24 kB / 1.314 GB, free: 13.72 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002612/0.3827, allocations: 249 kB / 1.314 GB, free: 13.47 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.3828, allocations: 99.34 kB / 1.314 GB, free: 13.38 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.384, allocations: 0.5006 MB / 1.315 GB, free: 12.86 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.384, allocations: 7.984 kB / 1.315 GB, free: 12.85 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.384, allocations: 4 kB / 1.315 GB, free: 12.84 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.384, allocations: 0 / 1.315 GB, free: 12.84 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001975/0.386, allocations: 1.237 MB / 1.316 GB, free: 11.54 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.386, allocations: 0 / 1.316 GB, free: 11.54 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005383/0.3865, allocations: 127.8 kB / 1.316 GB, free: 11.41 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.3866, allocations: 4 kB / 1.316 GB, free: 11.41 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.672e-05/0.3866, allocations: 8 kB / 1.316 GB, free: 11.4 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001701/0.3883, allocations: 2.946 MB / 1.319 GB, free: 8.34 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/0.3883, allocations: 8.312 kB / 1.319 GB, free: 8.332 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009562/0.3893, allocations: 0.5639 MB / 1.319 GB, free: 7.738 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002584/0.3896, allocations: 216.3 kB / 1.32 GB, free: 7.508 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.926e-05/0.3897, allocations: 8 kB / 1.32 GB, free: 7.5 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004522/0.3901, allocations: 31.95 kB / 1.32 GB, free: 7.469 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.83e-05/0.3902, allocations: 27.84 kB / 1.32 GB, free: 7.441 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-05/0.3902, allocations: 19.98 kB / 1.32 GB, free: 7.422 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0007721/0.391, allocations: 0.5839 MB / 1.32 GB, free: 6.828 MB / 1.045 GB Notification: Performance of sort global known variables: time 2.1e-07/0.391, allocations: 4 kB / 1.32 GB, free: 6.824 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.001225/0.3923, allocations: 0.538 MB / 1.321 GB, free: 6.285 MB / 1.045 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001862/0.3941, allocations: 1.34 MB / 1.322 GB, free: 4.914 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.002489/0.3966, allocations: 0.8458 MB / 1.323 GB, free: 4.074 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3966, allocations: 0.625 kB / 1.323 GB, free: 4.074 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0006259/0.3973, allocations: 228.9 kB / 1.323 GB, free: 3.852 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.3991, allocations: 417.7 kB / 1.323 GB, free: 3.449 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009454/0.4086, allocations: 6.46 MB / 1.33 GB, free: 12.78 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006569/0.4092, allocations: 1.017 MB / 1.331 GB, free: 11.73 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.000692/0.4099, allocations: 202.8 kB / 1.331 GB, free: 11.53 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004742/0.4104, allocations: 355.3 kB / 1.331 GB, free: 11.18 MB / 1.061 GB Notification: Performance of SimCode: time 3.4e-07/0.4104, allocations: 0 / 1.331 GB, free: 11.18 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06839/0.4788, allocations: 33.29 MB / 1.364 GB, free: 10.55 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.24/13.72, allocations: 11.7 kB / 1.364 GB, free: 10.55 MB / 1.092 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_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_TwoWayValves.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches