Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.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.ThreeWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves",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.001236/0.001236, allocations: 107.1 kB / 16.27 MB, free: 5.93 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.001286/0.001286, allocations: 190.9 kB / 17.2 MB, free: 5.574 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.286/1.286, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7236/0.7236, allocations: 122.9 MB / 413.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 67.89 kB / 0.4912 GB, free: 7.34 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3437, allocations: 77.91 MB / 0.5673 GB, free: 32.62 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.09285/0.4366, allocations: 112.6 MB / 0.6773 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.02763/0.4643, allocations: 20.25 MB / 0.697 GB, free: 5.582 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004539/0.4689, allocations: 111.4 kB / 0.6971 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003848/0.4727, allocations: 1.273 MB / 0.6984 GB, free: 4.191 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.01073/0.4836, allocations: 3.694 MB / 0.702 GB, free: 496 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.007649/0.4912, allocations: 3.082 MB / 0.705 GB, free: 13.45 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00837/0.4996, allocations: 7.186 MB / 0.712 GB, free: 6.25 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003812/0.5034, allocations: 2.58 MB / 0.7145 GB, free: 3.605 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006476/0.5099, allocations: 2.789 MB / 0.7173 GB, free: 0.8125 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003987/0.5139, allocations: 2.135 MB / 0.7194 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001044/0.515, allocations: 252 kB / 0.7196 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004439/0.5194, allocations: 1.646 MB / 0.7212 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.5205, allocations: 0.6889 MB / 0.7219 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002784/0.5233, allocations: 1.52 MB / 0.7234 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.006916/0.5302, allocations: 4.327 MB / 0.7276 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.084e-05/0.5303, allocations: 12 kB / 0.7276 GB, free: 6.203 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.603e-06/0.5303, allocations: 3.938 kB / 0.7276 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001302/0.5304, allocations: 0 / 0.7276 GB, free: 6.199 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.006189/0.5366, allocations: 3.222 MB / 0.7307 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.5367, allocations: 16.56 kB / 0.7308 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003824/0.537, allocations: 215.7 kB / 0.731 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008909/0.5379, allocations: 336.3 kB / 0.7313 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003931/0.5419, allocations: 2.09 MB / 0.7333 GB, free: 184 kB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/0.542, allocations: 127 kB / 0.7335 GB, free: 56 kB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002853/0.5423, allocations: 168 kB / 0.7336 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002785/0.5451, allocations: 1.608 MB / 0.7352 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.016e-05/0.5452, allocations: 4 kB / 0.7352 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001348/0.5453, allocations: 67.84 kB / 0.7353 GB, free: 14.15 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.856e-05/0.5454, allocations: 47.92 kB / 0.7353 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002133/0.5475, allocations: 1.151 MB / 0.7364 GB, free: 12.95 MB / 0.5762 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.01071/0.5582, allocations: 7.967 MB / 0.7442 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007826/0.559, allocations: 478 kB / 0.7447 GB, free: 3.992 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004819/0.5595, allocations: 327 kB / 0.745 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005967/0.5601, allocations: 0.7563 MB / 0.7457 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.958e-05/0.5602, allocations: 47.06 kB / 0.7458 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 2.795e-06/0.5602, allocations: 0 / 0.7458 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of matching and sorting (n=60): time 0.001977/0.5622, allocations: 0.9804 MB / 0.7467 GB, free: 1.707 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.5622, allocations: 59.97 kB / 0.7468 GB, free: 1.637 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2273/0.7896, allocations: 2.333 MB / 0.749 GB, free: 164.2 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0002389/0.7899, allocations: 45.17 kB / 0.7491 GB, free: 164.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.001013/0.7909, allocations: 1.151 MB / 0.7502 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002366/0.7911, allocations: 215.6 kB / 0.7504 GB, free: 163.6 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003905/0.7915, allocations: 259.5 kB / 0.7507 GB, free: 163.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.522e-05/0.7916, allocations: 350.7 kB / 0.751 GB, free: 163.1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006876/0.7923, allocations: 359.4 kB / 0.7513 GB, free: 163 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009034/0.7932, allocations: 0.7449 MB / 0.7521 GB, free: 162.4 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001382/0.7946, allocations: 0.9873 MB / 0.753 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.246e-06/0.7946, allocations: 9.984 kB / 0.753 GB, free: 161.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00264/0.7973, allocations: 1.288 MB / 0.7543 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.7973, allocations: 10.09 kB / 0.7543 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.7973, allocations: 7.75 kB / 0.7543 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.471e-05/0.7974, allocations: 16.73 kB / 0.7543 GB, free: 161.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000985/0.7984, allocations: 253.9 kB / 0.7546 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.112e-05/0.7984, allocations: 22.06 kB / 0.7546 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001404/0.7998, allocations: 168.5 kB / 0.7548 GB, free: 161.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/0.7999, allocations: 51.73 kB / 0.7548 GB, free: 161.1 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001407/0.8014, allocations: 0.7625 MB / 0.7556 GB, free: 160.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007834/0.8022, allocations: 0.7348 MB / 0.7563 GB, free: 160.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001147/0.8033, allocations: 0.9495 MB / 0.7572 GB, free: 159.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.322e-06/0.8033, allocations: 3.562 kB / 0.7572 GB, free: 159.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002069/0.8054, allocations: 1.258 MB / 0.7584 GB, free: 159 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.8054, allocations: 8.531 kB / 0.7584 GB, free: 159 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.8054, allocations: 8.781 kB / 0.7584 GB, free: 159 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.8055, allocations: 14.69 kB / 0.7585 GB, free: 159 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008726/0.8063, allocations: 253.4 kB / 0.7587 GB, free: 159 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.363e-05/0.8064, allocations: 20.39 kB / 0.7587 GB, free: 159 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/0.8077, allocations: 122.5 kB / 0.7588 GB, free: 158.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.148e-05/0.8078, allocations: 50.88 kB / 0.7589 GB, free: 158.9 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * 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.0002874/0.8081, allocations: 250 kB / 0.7591 GB, free: 158.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003033/0.8084, allocations: 239.8 kB / 0.7594 GB, free: 158.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001625/0.8101, allocations: 0.8902 MB / 0.7602 GB, free: 158.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/0.8101, allocations: 6.875 kB / 0.7602 GB, free: 158.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.8101, allocations: 1.094 kB / 0.7602 GB, free: 158.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009324/0.811, allocations: 0.6852 MB / 0.7609 GB, free: 157.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003601/0.8146, allocations: 2.581 MB / 0.7634 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.8147, allocations: 3.656 kB / 0.7634 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004937/0.8152, allocations: 129.8 kB / 0.7635 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.8152, allocations: 2.938 kB / 0.7635 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.963e-05/0.8152, allocations: 16.42 kB / 0.7636 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.8152, allocations: 3.531 kB / 0.7636 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.8152, allocations: 2.188 kB / 0.7636 GB, free: 156.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.817, allocations: 1.319 MB / 0.7649 GB, free: 155.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005578/0.8175, allocations: 420 kB / 0.7653 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002336/0.8178, allocations: 16.72 kB / 0.7653 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008853/0.8187, allocations: 42.8 kB / 0.7653 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.569e-05/0.8188, allocations: 41.33 kB / 0.7654 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.585e-05/0.8188, allocations: 37.67 kB / 0.7654 GB, free: 155.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002109/0.821, allocations: 1.571 MB / 0.7669 GB, free: 155 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/0.821, allocations: 1.125 kB / 0.7669 GB, free: 155 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002655/0.8236, allocations: 1.097 MB / 0.768 GB, free: 154.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.003369/0.827, allocations: 2.525 MB / 0.7705 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002764/0.8298, allocations: 1.45 MB / 0.7719 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.8298, allocations: 3.719 kB / 0.7719 GB, free: 153.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005034/0.8303, allocations: 327.9 kB / 0.7722 GB, free: 153 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005597/0.8359, allocations: 1.395 MB / 0.7736 GB, free: 152.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01765/0.8536, allocations: 17.47 MB / 0.7906 GB, free: 138.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007267/0.8543, allocations: 1.586 MB / 0.7922 GB, free: 137.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00187/0.8562, allocations: 0.4947 MB / 0.7926 GB, free: 136.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008459/0.8571, allocations: 0.96 MB / 0.7936 GB, free: 135.7 MB / 0.5762 GB Notification: Performance of SimCode: time 7.52e-07/0.8571, allocations: 0 / 0.7936 GB, free: 135.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08219/0.9393, allocations: 66.05 MB / 0.8581 GB, free: 70.29 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.684/10.62, allocations: 14.02 kB / 0.8581 GB, free: 70.28 MB / 0.5762 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1)