Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IBPSA_latest_IBPSA_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.001089/0.001089, allocations: 103 kB / 16.27 MB, free: 6.371 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.001091/0.001091, allocations: 186.6 kB / 17.2 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.274/1.274, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.729/0.729, allocations: 122.9 MB / 413.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 63.89 kB / 0.4912 GB, free: 7.391 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3156, allocations: 77.92 MB / 0.5673 GB, free: 32.66 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02577/0.3414, allocations: 29.79 MB / 0.5964 GB, free: 10.53 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01024/0.3517, allocations: 8.145 MB / 0.6043 GB, free: 3.914 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001393/0.3531, allocations: 36.53 kB / 0.6044 GB, free: 3.895 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001192/0.3543, allocations: 424.9 kB / 0.6048 GB, free: 3.539 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003461/0.3578, allocations: 1.378 MB / 0.6061 GB, free: 2.457 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00252/0.3603, allocations: 1.126 MB / 0.6072 GB, free: 1.629 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003341/0.3637, allocations: 3.543 MB / 0.6107 GB, free: 14.33 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001735/0.3654, allocations: 1.336 MB / 0.612 GB, free: 12.98 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002527/0.368, allocations: 1.66 MB / 0.6136 GB, free: 11.32 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002774/0.3708, allocations: 1.643 MB / 0.6152 GB, free: 9.668 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005698/0.3714, allocations: 128 kB / 0.6153 GB, free: 9.543 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002231/0.3736, allocations: 1.01 MB / 0.6163 GB, free: 8.531 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005858/0.3742, allocations: 414.7 kB / 0.6167 GB, free: 8.125 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001124/0.3753, allocations: 0.7544 MB / 0.6175 GB, free: 7.367 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002678/0.378, allocations: 2.177 MB / 0.6196 GB, free: 5.184 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.378, allocations: 0 / 0.6196 GB, free: 5.184 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.378, allocations: 0 / 0.6196 GB, free: 5.184 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.87e-05/0.3781, allocations: 0 / 0.6196 GB, free: 5.184 MB / 462.1 MB 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.002896/0.381, allocations: 1.675 MB / 0.6212 GB, free: 3.457 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.381, allocations: 12.62 kB / 0.6212 GB, free: 3.445 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001143/0.3811, allocations: 98.7 kB / 0.6213 GB, free: 3.34 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004028/0.3816, allocations: 151.2 kB / 0.6215 GB, free: 3.191 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001828/0.3834, allocations: 0.8871 MB / 0.6223 GB, free: 2.246 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.841e-05/0.3835, allocations: 81.31 kB / 0.6224 GB, free: 2.168 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002373/0.3837, allocations: 116 kB / 0.6225 GB, free: 2.055 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.3849, allocations: 0.6395 MB / 0.6231 GB, free: 1.387 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.3849, allocations: 0 / 0.6231 GB, free: 1.387 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.134e-05/0.385, allocations: 24 kB / 0.6232 GB, free: 1.363 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/0.385, allocations: 19.94 kB / 0.6232 GB, free: 1.344 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009202/0.3859, allocations: 464.8 kB / 0.6236 GB, free: 0.8906 MB / 462.1 MB 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.004528/0.3905, allocations: 2.887 MB / 0.6265 GB, free: 13.85 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005926/0.3911, allocations: 319.1 kB / 0.6268 GB, free: 13.53 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003021/0.3914, allocations: 145.3 kB / 0.6269 GB, free: 13.38 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002943/0.3917, allocations: 344.7 kB / 0.6272 GB, free: 12.97 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.3917, allocations: 34.84 kB / 0.6273 GB, free: 12.93 MB / 478.1 MB Notification: Performance of pre-optimization done (n=33): time 2.465e-06/0.3917, allocations: 0 / 0.6273 GB, free: 12.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=33): time 0.001304/0.393, allocations: 0.5368 MB / 0.6278 GB, free: 12.39 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.3931, allocations: 55.41 kB / 0.6278 GB, free: 12.32 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.3941, allocations: 0.9036 MB / 0.6287 GB, free: 11.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.3943, allocations: 57.7 kB / 0.6288 GB, free: 11.34 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004349/0.3947, allocations: 0.5376 MB / 0.6293 GB, free: 10.79 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.804e-05/0.3948, allocations: 114.3 kB / 0.6294 GB, free: 10.68 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003758/0.3952, allocations: 287 kB / 0.6297 GB, free: 10.39 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3953, allocations: 342.1 kB / 0.63 GB, free: 10.05 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003957/0.3957, allocations: 185.4 kB / 0.6302 GB, free: 9.871 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001264/0.397, allocations: 1.159 MB / 0.6313 GB, free: 8.344 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007992/0.3978, allocations: 455.4 kB / 0.6317 GB, free: 7.875 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3978, allocations: 0 / 0.6317 GB, free: 7.875 MB / 478.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001353/0.3992, allocations: 0.6503 MB / 0.6324 GB, free: 7.219 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.3992, allocations: 8 kB / 0.6324 GB, free: 7.211 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.3992, allocations: 8 kB / 0.6324 GB, free: 7.203 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.3992, allocations: 7.938 kB / 0.6324 GB, free: 7.195 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001445/0.4007, allocations: 227.7 kB / 0.6326 GB, free: 6.973 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00139/0.4021, allocations: 2.957 MB / 0.6355 GB, free: 3.898 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003205/0.4053, allocations: 0.7027 MB / 0.6362 GB, free: 3.191 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.199e-05/0.4054, allocations: 27.98 kB / 0.6362 GB, free: 3.164 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006651/0.4061, allocations: 370.2 kB / 0.6366 GB, free: 2.801 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001175/0.4072, allocations: 1.158 MB / 0.6377 GB, free: 1.262 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007262/0.408, allocations: 456.8 kB / 0.6381 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.214e-06/0.408, allocations: 8 kB / 0.6382 GB, free: 0.7695 MB / 478.1 MB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.00133/0.4093, allocations: 0.6548 MB / 0.6388 GB, free: 112 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/0.4093, allocations: 4 kB / 0.6388 GB, free: 108 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.4094, allocations: 4 kB / 0.6388 GB, free: 104 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.154e-06/0.4094, allocations: 4.312 kB / 0.6388 GB, free: 100 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000688/0.4101, allocations: 159.8 kB / 0.639 GB, free: 15.94 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.4101, allocations: 4 kB / 0.639 GB, free: 15.94 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004328/0.4144, allocations: 0.9651 MB / 0.6399 GB, free: 14.97 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.015e-05/0.4145, allocations: 28 kB / 0.6399 GB, free: 14.95 MB / 494.1 MB 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.0002478/0.4147, allocations: 248.9 kB / 0.6402 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001586/0.4149, allocations: 94.78 kB / 0.6403 GB, free: 14.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001098/0.416, allocations: 0.5129 MB / 0.6408 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/0.416, allocations: 4 kB / 0.6408 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.416, allocations: 4 kB / 0.6408 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.84e-06/0.4161, allocations: 0 / 0.6408 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001944/0.418, allocations: 1.252 MB / 0.642 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.418, allocations: 0 / 0.642 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005493/0.4186, allocations: 123.8 kB / 0.6421 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.4186, allocations: 4 kB / 0.6421 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.4186, allocations: 11.94 kB / 0.6421 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001365/0.42, allocations: 2.946 MB / 0.645 GB, free: 9.555 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.42, allocations: 3.938 kB / 0.645 GB, free: 9.551 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008876/0.4209, allocations: 0.5656 MB / 0.6456 GB, free: 8.957 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002723/0.4212, allocations: 211.7 kB / 0.6458 GB, free: 8.73 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.4213, allocations: 8 kB / 0.6458 GB, free: 8.723 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004679/0.4218, allocations: 31.84 kB / 0.6458 GB, free: 8.691 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.31e-05/0.4219, allocations: 31.95 kB / 0.6458 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.241e-05/0.4219, allocations: 20 kB / 0.6458 GB, free: 8.641 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007241/0.4226, allocations: 0.6123 MB / 0.6464 GB, free: 8.02 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4227, allocations: 0 / 0.6464 GB, free: 8.02 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001344/0.424, allocations: 0.5423 MB / 0.647 GB, free: 7.477 MB / 494.1 MB 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.001754/0.4258, allocations: 1.32 MB / 0.6483 GB, free: 6.129 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002664/0.4284, allocations: 0.8587 MB / 0.6491 GB, free: 5.262 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.4285, allocations: 0 / 0.6491 GB, free: 5.262 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005805/0.429, allocations: 231.4 kB / 0.6493 GB, free: 5.035 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/0.431, allocations: 412.3 kB / 0.6497 GB, free: 4.648 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009731/0.4408, allocations: 6.943 MB / 0.6565 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005532/0.4414, allocations: 1.021 MB / 0.6575 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0009218/0.4423, allocations: 207.9 kB / 0.6577 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004362/0.4427, allocations: 367.3 kB / 0.658 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of SimCode: time 5.31e-07/0.4427, allocations: 4 kB / 0.658 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05977/0.5025, allocations: 33.22 MB / 0.6905 GB, free: 11.15 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.72, allocations: 8.047 kB / 0.6905 GB, free: 11.14 MB / 0.5294 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)