Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",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.001494/0.001494, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.001367/0.001367, allocations: 177.3 kB / 15.94 MB, free: 228 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.837/1.837, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.967/1.967, allocations: 292.6 MB / 0.5497 GB, free: 14.64 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.0005342/0.0005343, allocations: 17.44 kB / 0.6737 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2755, allocations: 116.3 MB / 0.7872 GB, free: 11.89 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.01687/0.2925, allocations: 16.52 MB / 0.8034 GB, free: 11.31 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01193/0.3045, allocations: 7.318 MB / 0.8105 GB, free: 3.984 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000941/0.3054, allocations: 23.75 kB / 0.8105 GB, free: 3.961 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.00135/0.3068, allocations: 378.3 kB / 0.8109 GB, free: 3.59 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.002313/0.3091, allocations: 0.7906 MB / 0.8117 GB, free: 2.797 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.005815/0.315, allocations: 2.187 MB / 0.8138 GB, free: 0.6445 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.001687/0.3167, allocations: 0.9387 MB / 0.8147 GB, free: 15.7 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006204/0.3173, allocations: 423.2 kB / 0.8151 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008754/0.3182, allocations: 0.4983 MB / 0.8156 GB, free: 14.77 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005169/0.3187, allocations: 398.3 kB / 0.816 GB, free: 14.38 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 6.433e-05/0.3188, allocations: 28 kB / 0.816 GB, free: 14.36 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00119/0.32, allocations: 0.6396 MB / 0.8166 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.3201, allocations: 123.5 kB / 0.8168 GB, free: 13.59 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.3203, allocations: 153.3 kB / 0.8169 GB, free: 13.44 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0007893/0.3211, allocations: 0.7443 MB / 0.8176 GB, free: 12.69 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.3211, allocations: 0 / 0.8176 GB, free: 12.69 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3211, allocations: 0 / 0.8176 GB, free: 12.69 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.212e-05/0.3211, allocations: 0 / 0.8176 GB, free: 12.69 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001717/0.3228, allocations: 0.985 MB / 0.8186 GB, free: 11.66 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.3229, allocations: 8.031 kB / 0.8186 GB, free: 11.65 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.111e-05/0.323, allocations: 86.52 kB / 0.8187 GB, free: 11.55 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.3231, allocations: 79.06 kB / 0.8188 GB, free: 11.48 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007566/0.3238, allocations: 498.5 kB / 0.8192 GB, free: 10.95 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/0.3239, allocations: 40.94 kB / 0.8193 GB, free: 10.91 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.999e-05/0.324, allocations: 48 kB / 0.8193 GB, free: 10.86 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.325, allocations: 0.6333 MB / 0.8199 GB, free: 10.16 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.3251, allocations: 3.938 kB / 0.8199 GB, free: 10.15 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.314e-05/0.3251, allocations: 24 kB / 0.82 GB, free: 10.13 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.3251, allocations: 12 kB / 0.82 GB, free: 10.12 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.3261, allocations: 0.5112 MB / 0.8205 GB, free: 9.609 MB / 0.6387 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.003253/0.3294, allocations: 3.193 MB / 0.8236 GB, free: 6.219 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006653/0.3301, allocations: 354.8 kB / 0.8239 GB, free: 5.863 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004046/0.3305, allocations: 348.4 kB / 0.8243 GB, free: 5.449 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.3306, allocations: 34.56 kB / 0.8243 GB, free: 5.406 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=38): time 2.414e-06/0.3306, allocations: 0 / 0.8243 GB, free: 5.406 MB / 0.6387 GB Notification: Performance of matching and sorting (n=38): time 0.002053/0.3326, allocations: 0.8619 MB / 0.8251 GB, free: 4.516 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.3327, allocations: 59.41 kB / 0.8252 GB, free: 4.445 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005966/0.3333, allocations: 0.5821 MB / 0.8258 GB, free: 3.855 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.3333, allocations: 29.7 kB / 0.8258 GB, free: 3.82 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.3336, allocations: 332.4 kB / 0.8261 GB, free: 3.492 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 9.532e-05/0.3337, allocations: 122.2 kB / 0.8262 GB, free: 3.371 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.769e-05/0.3337, allocations: 16 kB / 0.8262 GB, free: 3.355 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3338, allocations: 370.8 kB / 0.8266 GB, free: 2.984 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004841/0.3343, allocations: 221.2 kB / 0.8268 GB, free: 2.766 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005869/0.3349, allocations: 376 kB / 0.8272 GB, free: 2.34 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005228/0.3355, allocations: 256.7 kB / 0.8274 GB, free: 2.086 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/0.3355, allocations: 4 kB / 0.8274 GB, free: 2.082 MB / 0.6387 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001364/0.3369, allocations: 0.7338 MB / 0.8281 GB, free: 1.34 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005996/0.3375, allocations: 1.744 MB / 0.8298 GB, free: 15.46 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.3375, allocations: 4 kB / 0.8298 GB, free: 15.45 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005954/0.3381, allocations: 152.8 kB / 0.83 GB, free: 15.3 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006527/0.3387, allocations: 159.8 kB / 0.8301 GB, free: 15.14 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005954/0.3393, allocations: 0.6226 MB / 0.8307 GB, free: 14.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000589/0.34, allocations: 103.3 kB / 0.8308 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.762e-05/0.34, allocations: 31.98 kB / 0.8309 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 7.894e-06/0.34, allocations: 8 kB / 0.8309 GB, free: 14.36 MB / 0.6544 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001171/0.3412, allocations: 0.6271 MB / 0.8315 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3412, allocations: 4 kB / 0.8315 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.877e-06/0.3412, allocations: 8 kB / 0.8315 GB, free: 13.72 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005662/0.3418, allocations: 159.8 kB / 0.8317 GB, free: 13.56 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.3418, allocations: 11.94 kB / 0.8317 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000512/0.3424, allocations: 95.64 kB / 0.8318 GB, free: 13.46 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.757e-05/0.3424, allocations: 31.98 kB / 0.8318 GB, free: 13.43 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000267/0.3427, allocations: 277.5 kB / 0.8321 GB, free: 13.14 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.718e-05/0.3428, allocations: 71.14 kB / 0.8321 GB, free: 13.07 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001361/0.3441, allocations: 0.6581 MB / 0.8328 GB, free: 12.4 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.3442, allocations: 7.984 kB / 0.8328 GB, free: 12.39 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3442, allocations: 0 / 0.8328 GB, free: 12.39 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.3442, allocations: 8 kB / 0.8328 GB, free: 12.39 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002328/0.3465, allocations: 1.393 MB / 0.8341 GB, free: 10.92 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.3465, allocations: 4 kB / 0.8341 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/0.3469, allocations: 87.88 kB / 0.8342 GB, free: 10.83 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003925/0.3473, allocations: 136.9 kB / 0.8344 GB, free: 10.69 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.346e-05/0.3473, allocations: 16 kB / 0.8344 GB, free: 10.68 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005953/0.3479, allocations: 0.6304 MB / 0.835 GB, free: 10.02 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.348, allocations: 7.969 kB / 0.835 GB, free: 10.01 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.3493, allocations: 0.7567 MB / 0.8357 GB, free: 9.211 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002409/0.3495, allocations: 212 kB / 0.8359 GB, free: 8.984 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.825e-05/0.3496, allocations: 4 kB / 0.8359 GB, free: 8.98 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004219/0.35, allocations: 59.89 kB / 0.836 GB, free: 8.922 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.405e-05/0.3501, allocations: 35.89 kB / 0.836 GB, free: 8.887 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-05/0.3502, allocations: 15.98 kB / 0.836 GB, free: 8.871 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0004287/0.3506, allocations: 395.1 kB / 0.8364 GB, free: 8.492 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3506, allocations: 0 / 0.8364 GB, free: 8.492 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001106/0.3517, allocations: 383.3 kB / 0.8368 GB, free: 8.117 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002136/0.3539, allocations: 1.716 MB / 0.8385 GB, free: 6.363 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002035/0.3559, allocations: 0.914 MB / 0.8394 GB, free: 5.453 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3559, allocations: 3.938 kB / 0.8394 GB, free: 5.449 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0007152/0.3566, allocations: 304.2 kB / 0.8396 GB, free: 5.152 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.358, allocations: 261.5 kB / 0.8399 GB, free: 4.898 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00367/0.3616, allocations: 4.629 MB / 0.8444 GB, free: 136 kB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004993/0.3622, allocations: 0.9272 MB / 0.8453 GB, free: 15.18 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0005918/0.3628, allocations: 148.8 kB / 0.8455 GB, free: 15.04 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000331/0.3631, allocations: 243.3 kB / 0.8457 GB, free: 14.8 MB / 0.67 GB Notification: Performance of SimCode: time 1.022e-06/0.3631, allocations: 0 / 0.8457 GB, free: 14.8 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03389/0.397, allocations: 17.49 MB / 0.8628 GB, free: 13.7 MB / 0.6856 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00022/0.3973, allocations: 278.8 kB / 0.863 GB, free: 13.34 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.195/2.593, allocations: 4 kB / 0.8631 GB, free: 13.34 MB / 0.6856 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > Buildings_8_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) Environment - environmentSimulation: