Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_8_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.001223/0.001223, allocations: 94.03 kB / 15.06 MB, free: 1.086 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.001616/0.001616, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.66/1.66, allocations: 205.4 MB / 222.1 MB, free: 5.75 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.884/1.884, allocations: 292.7 MB / 0.5499 GB, free: 14.55 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005107/0.0005107, allocations: 16.69 kB / 0.6738 GB, free: 26.35 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2559, allocations: 116.3 MB / 0.7874 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02617/0.2821, allocations: 27.76 MB / 0.8145 GB, free: 12 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01571/0.2979, allocations: 10.96 MB / 0.8252 GB, free: 5.035 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002189/0.3001, allocations: 35.62 kB / 0.8252 GB, free: 5 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001454/0.3016, allocations: 305.9 kB / 0.8255 GB, free: 4.699 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.003842/0.3055, allocations: 1.076 MB / 0.8266 GB, free: 3.621 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.002942/0.3084, allocations: 0.9596 MB / 0.8275 GB, free: 2.672 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.004548/0.313, allocations: 3.508 MB / 0.831 GB, free: 15.15 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002018/0.3151, allocations: 1.078 MB / 0.832 GB, free: 14.06 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002903/0.318, allocations: 1.449 MB / 0.8334 GB, free: 12.61 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002868/0.3209, allocations: 1.542 MB / 0.8349 GB, free: 11.06 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0005368/0.3214, allocations: 68 kB / 0.835 GB, free: 10.99 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002315/0.3238, allocations: 0.8656 MB / 0.8358 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0005055/0.3243, allocations: 326.8 kB / 0.8361 GB, free: 9.805 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0005703/0.3249, allocations: 241.1 kB / 0.8364 GB, free: 9.562 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.001757/0.3266, allocations: 1.535 MB / 0.8379 GB, free: 8.023 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.3266, allocations: 0 / 0.8379 GB, free: 8.023 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.554e-06/0.3266, allocations: 0 / 0.8379 GB, free: 8.023 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 2.753e-05/0.3267, allocations: 0 / 0.8379 GB, free: 8.023 MB / 0.6544 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.002563/0.3293, allocations: 1.328 MB / 0.8392 GB, free: 6.641 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.3293, allocations: 8.031 kB / 0.8392 GB, free: 6.633 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001335/0.3295, allocations: 102.5 kB / 0.8393 GB, free: 6.523 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000309/0.3298, allocations: 146.5 kB / 0.8394 GB, free: 6.379 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001482/0.3313, allocations: 0.8564 MB / 0.8403 GB, free: 5.48 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.124e-05/0.3313, allocations: 81.31 kB / 0.8403 GB, free: 5.402 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001797/0.3315, allocations: 116 kB / 0.8404 GB, free: 5.289 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.3325, allocations: 0.6395 MB / 0.8411 GB, free: 4.621 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.3326, allocations: 4 kB / 0.8411 GB, free: 4.617 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.086e-05/0.3326, allocations: 24 kB / 0.8411 GB, free: 4.594 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.3326, allocations: 12 kB / 0.8411 GB, free: 4.582 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00083/0.3335, allocations: 476.8 kB / 0.8416 GB, free: 4.113 MB / 0.6544 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.004136/0.3376, allocations: 2.871 MB / 0.8444 GB, free: 1.086 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000556/0.3382, allocations: 315.1 kB / 0.8447 GB, free: 0.7734 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002779/0.3385, allocations: 149.3 kB / 0.8448 GB, free: 0.625 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003089/0.3388, allocations: 352.6 kB / 0.8451 GB, free: 212 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.383e-05/0.3388, allocations: 34.84 kB / 0.8452 GB, free: 168 kB / 0.6544 GB Notification: Performance of pre-optimization done (n=33): time 2.094e-06/0.3388, allocations: 0 / 0.8452 GB, free: 168 kB / 0.6544 GB Notification: Performance of matching and sorting (n=33): time 0.001216/0.3401, allocations: 0.5392 MB / 0.8457 GB, free: 15.62 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.3401, allocations: 59.34 kB / 0.8458 GB, free: 15.55 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009461/0.3411, allocations: 0.8868 MB / 0.8466 GB, free: 14.64 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001118/0.3412, allocations: 57.64 kB / 0.8467 GB, free: 14.58 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004234/0.3416, allocations: 0.5333 MB / 0.8472 GB, free: 14.04 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 9.138e-05/0.3417, allocations: 122.3 kB / 0.8473 GB, free: 13.91 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.844e-05/0.3418, allocations: 12 kB / 0.8473 GB, free: 13.9 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001013/0.3419, allocations: 334 kB / 0.8477 GB, free: 13.57 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003444/0.3422, allocations: 173.2 kB / 0.8478 GB, free: 13.4 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/0.3434, allocations: 1.147 MB / 0.8489 GB, free: 11.89 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004621/0.3439, allocations: 294.8 kB / 0.8492 GB, free: 11.6 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.3439, allocations: 7.984 kB / 0.8492 GB, free: 11.59 MB / 0.67 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001168/0.3451, allocations: 0.6346 MB / 0.8498 GB, free: 10.95 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 9.292e-05/0.3452, allocations: 156.1 kB / 0.85 GB, free: 10.77 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.3452, allocations: 4 kB / 0.85 GB, free: 10.77 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.3452, allocations: 7.953 kB / 0.85 GB, free: 10.76 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.3466, allocations: 235.7 kB / 0.8502 GB, free: 10.53 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001524/0.3481, allocations: 2.957 MB / 0.8531 GB, free: 7.453 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002968/0.3511, allocations: 0.7574 MB / 0.8539 GB, free: 6.691 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.64e-05/0.3512, allocations: 24 kB / 0.8539 GB, free: 6.668 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.3512, allocations: 4 kB / 0.8539 GB, free: 6.664 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009279/0.3521, allocations: 0.5012 MB / 0.8544 GB, free: 6.164 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3521, allocations: 4 kB / 0.8544 GB, free: 6.16 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.728e-06/0.3521, allocations: 7.984 kB / 0.8544 GB, free: 6.152 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006216/0.3528, allocations: 155.8 kB / 0.8545 GB, free: 6 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.3528, allocations: 7.938 kB / 0.8545 GB, free: 5.992 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002803/0.3556, allocations: 0.738 MB / 0.8553 GB, free: 5.254 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-05/0.3557, allocations: 27.98 kB / 0.8553 GB, free: 5.227 MB / 0.67 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 (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004857/0.3561, allocations: 325.9 kB / 0.8556 GB, free: 4.898 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000154/0.3563, allocations: 98.73 kB / 0.8557 GB, free: 4.801 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001054/0.3574, allocations: 0.5246 MB / 0.8562 GB, free: 4.27 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.3574, allocations: 4 kB / 0.8562 GB, free: 4.266 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.3574, allocations: 0 / 0.8562 GB, free: 4.266 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.3574, allocations: 3.984 kB / 0.8562 GB, free: 4.262 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.3593, allocations: 1.263 MB / 0.8574 GB, free: 2.93 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.3593, allocations: 4 kB / 0.8575 GB, free: 2.926 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005073/0.3598, allocations: 128 kB / 0.8576 GB, free: 2.801 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.79e-06/0.3598, allocations: 0 / 0.8576 GB, free: 2.801 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.3598, allocations: 15.98 kB / 0.8576 GB, free: 2.785 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/0.3611, allocations: 2.942 MB / 0.8605 GB, free: 15.73 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3611, allocations: 4.062 kB / 0.8605 GB, free: 15.72 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008422/0.362, allocations: 0.5738 MB / 0.861 GB, free: 15.12 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002983/0.3623, allocations: 219.7 kB / 0.8612 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.739e-05/0.3624, allocations: 7.984 kB / 0.8612 GB, free: 14.88 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004908/0.3629, allocations: 63.78 kB / 0.8613 GB, free: 14.82 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.089e-05/0.363, allocations: 31.91 kB / 0.8613 GB, free: 14.79 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.561e-05/0.363, allocations: 19.98 kB / 0.8614 GB, free: 14.77 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0007011/0.3637, allocations: 0.5845 MB / 0.8619 GB, free: 14.17 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3637, allocations: 0 / 0.8619 GB, free: 14.17 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001519/0.3652, allocations: 0.5423 MB / 0.8625 GB, free: 13.63 MB / 0.6856 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 (linear and non-linear blocks): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001681/0.3669, allocations: 1.326 MB / 0.8637 GB, free: 12.27 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002515/0.3695, allocations: 0.8351 MB / 0.8646 GB, free: 11.43 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3695, allocations: 4.375 kB / 0.8646 GB, free: 11.43 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0005464/0.37, allocations: 232.3 kB / 0.8648 GB, free: 11.2 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002335/0.3724, allocations: 0.497 MB / 0.8653 GB, free: 10.71 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008927/0.3813, allocations: 5.027 MB / 0.8702 GB, free: 5.457 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005964/0.382, allocations: 1.025 MB / 0.8712 GB, free: 4.402 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001208/0.3832, allocations: 215.1 kB / 0.8714 GB, free: 4.188 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000468/0.3837, allocations: 371.3 kB / 0.8717 GB, free: 3.824 MB / 0.6856 GB Notification: Performance of SimCode: time 1.252e-06/0.3837, allocations: 0 / 0.8717 GB, free: 3.824 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05552/0.4392, allocations: 32.39 MB / 0.9034 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002044/0.4394, allocations: 248.6 kB / 0.9036 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.762/3.201, allocations: 7.875 kB / 0.9036 GB, free: 3.758 MB / 0.7169 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) Environment - environmentSimulation: