Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.419/1.419, allocations: 252 MB / 267.3 MB, free: 10.83 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009384/0.0009384, allocations: 169.3 kB / 327 MB, free: 2.082 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.963/1.963, allocations: 205.4 MB / 0.578 GB, free: 20.1 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008777/0.0008779, allocations: 92.62 kB / 0.6826 GB, free: 12.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003917/0.0003918, allocations: 9 kB / 0.7971 GB, free: 134.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.217/0.2174, allocations: 106.4 MB / 0.9009 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02505/0.2425, allocations: 25.78 MB / 0.9261 GB, free: 37.32 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.01535/0.2579, allocations: 10.72 MB / 0.9366 GB, free: 26.59 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001942/0.2599, allocations: 35.62 kB / 0.9366 GB, free: 26.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.001366/0.2613, allocations: 298.2 kB / 0.9369 GB, free: 26.26 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.003925/0.2652, allocations: 1.06 MB / 0.9379 GB, free: 25.2 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.002812/0.2681, allocations: 0.9188 MB / 0.9388 GB, free: 24.29 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.003488/0.2716, allocations: 3.199 MB / 0.9419 GB, free: 21.07 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001523/0.2731, allocations: 0.8374 MB / 0.9428 GB, free: 20.22 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002246/0.2754, allocations: 1.07 MB / 0.9438 GB, free: 19.15 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001941/0.2773, allocations: 1.004 MB / 0.9448 GB, free: 18.14 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 0.0004522/0.2778, allocations: 47.94 kB / 0.9448 GB, free: 18.09 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002437/0.2803, allocations: 0.8928 MB / 0.9457 GB, free: 17.2 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 0.0004987/0.2808, allocations: 223.1 kB / 0.9459 GB, free: 16.98 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.001157/0.282, allocations: 0.5108 MB / 0.9464 GB, free: 16.46 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.002674/0.2846, allocations: 1.55 MB / 0.9479 GB, free: 14.91 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.2847, allocations: 4 kB / 0.9479 GB, free: 14.9 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.745e-06/0.2847, allocations: 0 / 0.9479 GB, free: 14.9 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.523e-05/0.2847, allocations: 0 / 0.9479 GB, free: 14.9 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002157/0.2869, allocations: 1.149 MB / 0.9491 GB, free: 13.7 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.287, allocations: 8.031 kB / 0.9491 GB, free: 13.69 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001675/0.2871, allocations: 94.7 kB / 0.9491 GB, free: 13.59 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003088/0.2875, allocations: 119.4 kB / 0.9493 GB, free: 13.47 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.2886, allocations: 0.6623 MB / 0.9499 GB, free: 12.77 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.705e-05/0.2887, allocations: 53 kB / 0.95 GB, free: 12.71 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/0.2889, allocations: 84 kB / 0.95 GB, free: 12.63 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008992/0.2898, allocations: 0.5686 MB / 0.9506 GB, free: 12.04 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.2898, allocations: 4 kB / 0.9506 GB, free: 12.03 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.953e-05/0.2899, allocations: 20 kB / 0.9506 GB, free: 12.01 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.2899, allocations: 15.94 kB / 0.9506 GB, free: 12 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007579/0.2906, allocations: 419.6 kB / 0.951 GB, free: 11.59 MB / 0.6042 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.003912/0.2946, allocations: 2.536 MB / 0.9535 GB, free: 8.914 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005037/0.2951, allocations: 272.7 kB / 0.9538 GB, free: 8.641 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002592/0.2954, allocations: 140.8 kB / 0.9539 GB, free: 8.5 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002998/0.2957, allocations: 340.4 kB / 0.9542 GB, free: 8.094 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.2957, allocations: 34.56 kB / 0.9543 GB, free: 8.051 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=29): time 2.344e-06/0.2957, allocations: 0 / 0.9543 GB, free: 8.051 MB / 0.6042 GB Notification: Performance of matching and sorting (n=29): time 0.00121/0.2969, allocations: 493.9 kB / 0.9547 GB, free: 7.562 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.708e-05/0.297, allocations: 55.41 kB / 0.9548 GB, free: 7.496 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008321/0.2978, allocations: 0.7553 MB / 0.9555 GB, free: 6.73 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001287/0.298, allocations: 45.64 kB / 0.9556 GB, free: 6.68 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003274/0.2983, allocations: 432.9 kB / 0.956 GB, free: 6.25 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 7.242e-05/0.2984, allocations: 102.5 kB / 0.9561 GB, free: 6.148 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.607e-05/0.2984, allocations: 12 kB / 0.9561 GB, free: 6.137 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.308e-05/0.2985, allocations: 329.9 kB / 0.9564 GB, free: 5.809 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003144/0.2988, allocations: 165 kB / 0.9566 GB, free: 5.648 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007739/0.2996, allocations: 0.7829 MB / 0.9573 GB, free: 4.656 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006754/0.3003, allocations: 411.6 kB / 0.9577 GB, free: 4.23 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.3003, allocations: 224 / 0.9577 GB, free: 4.23 MB / 0.6042 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001107/0.3014, allocations: 0.5731 MB / 0.9583 GB, free: 3.652 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.529e-05/0.3015, allocations: 158.8 kB / 0.9584 GB, free: 3.461 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3015, allocations: 4 kB / 0.9584 GB, free: 3.457 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.3015, allocations: 11.88 kB / 0.9584 GB, free: 3.445 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.3027, allocations: 191.8 kB / 0.9586 GB, free: 3.258 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009773/0.3037, allocations: 2.375 MB / 0.9609 GB, free: 0.7891 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002993/0.3067, allocations: 0.6788 MB / 0.9616 GB, free: 112 kB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.768e-05/0.3068, allocations: 27.98 kB / 0.9616 GB, free: 84 kB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.3069, allocations: 6.812 kB / 0.9616 GB, free: 80 kB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001015/0.3079, allocations: 454.1 kB / 0.9621 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.3079, allocations: 4 kB / 0.9621 GB, free: 15.63 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.3079, allocations: 7.938 kB / 0.9621 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006001/0.3085, allocations: 136 kB / 0.9622 GB, free: 15.49 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.3085, allocations: 7.938 kB / 0.9622 GB, free: 15.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003248/0.3118, allocations: 0.6789 MB / 0.9629 GB, free: 14.8 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.312, allocations: 20 kB / 0.9629 GB, free: 14.79 MB / 0.6198 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 (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * 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): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008407/0.3128, allocations: 293.6 kB / 0.9632 GB, free: 14.48 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002837/0.3131, allocations: 86.91 kB / 0.9633 GB, free: 14.4 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001203/0.3143, allocations: 485.3 kB / 0.9637 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.337e-05/0.3144, allocations: 4 kB / 0.9637 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.3144, allocations: 4 kB / 0.9637 GB, free: 13.91 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.3144, allocations: 7.984 kB / 0.9637 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002238/0.3166, allocations: 1.139 MB / 0.9649 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/0.3167, allocations: 4 kB / 0.9649 GB, free: 12.69 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005029/0.3172, allocations: 103.9 kB / 0.965 GB, free: 12.59 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.3172, allocations: 0 / 0.965 GB, free: 12.59 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.056e-05/0.3172, allocations: 12 kB / 0.965 GB, free: 12.58 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001237/0.3185, allocations: 2.36 MB / 0.9673 GB, free: 10.12 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3185, allocations: 0 / 0.9673 GB, free: 10.12 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009144/0.3194, allocations: 0.5365 MB / 0.9678 GB, free: 9.559 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004264/0.3198, allocations: 203.9 kB / 0.968 GB, free: 9.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/0.32, allocations: 11.94 kB / 0.968 GB, free: 9.328 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005252/0.3205, allocations: 51.94 kB / 0.9681 GB, free: 9.277 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.079e-05/0.3206, allocations: 23.97 kB / 0.9681 GB, free: 9.254 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-05/0.3207, allocations: 8 kB / 0.9681 GB, free: 9.246 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0006875/0.3214, allocations: 0.5224 MB / 0.9686 GB, free: 8.727 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.61e-07/0.3214, allocations: 0 / 0.9686 GB, free: 8.727 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.001415/0.3228, allocations: 471.1 kB / 0.969 GB, free: 8.266 MB / 0.6198 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 (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * 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): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001883/0.3247, allocations: 1.294 MB / 0.9703 GB, free: 6.934 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.002373/0.3271, allocations: 0.7322 MB / 0.971 GB, free: 6.203 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3271, allocations: 0 / 0.971 GB, free: 6.203 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0005774/0.3277, allocations: 208 kB / 0.9712 GB, free: 6 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002781/0.3305, allocations: 423.6 kB / 0.9716 GB, free: 5.594 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/0.3412, allocations: 6.231 MB / 0.9777 GB, free: 15.13 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006937/0.3419, allocations: 0.9658 MB / 0.9787 GB, free: 14.14 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.001101/0.3431, allocations: 174 kB / 0.9788 GB, free: 13.97 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004583/0.3435, allocations: 315.3 kB / 0.9791 GB, free: 13.66 MB / 0.6355 GB Notification: Performance of SimCode: time 1.122e-06/0.3436, allocations: 0 / 0.9791 GB, free: 13.66 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05211/0.3957, allocations: 27.06 MB / 1.006 GB, free: 2.992 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002352/0.396, allocations: 286.6 kB / 1.006 GB, free: 2.613 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.349/3.745, allocations: 0 / 1.006 GB, free: 2.613 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)