Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_latest_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.0008952/0.0008952, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001039/0.001039, 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 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.55/2.55, allocations: 409.4 MB / 0.684 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003966/0.0003967, allocations: 12 kB / 0.8378 GB, free: 6.523 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8572/0.8576, allocations: 146.8 MB / 0.9811 GB, free: 6.277 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02745/0.8852, allocations: 27.39 MB / 1.008 GB, free: 10.81 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01264/0.8978, allocations: 7.663 MB / 1.015 GB, free: 3.129 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002099/0.9, allocations: 27.75 kB / 1.015 GB, free: 3.102 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.001663/0.9017, allocations: 309.9 kB / 1.016 GB, free: 2.797 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.004655/0.9064, allocations: 1.087 MB / 1.017 GB, free: 1.707 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.00347/0.9099, allocations: 0.9641 MB / 1.018 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.005259/0.9151, allocations: 3.535 MB / 1.021 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002477/0.9176, allocations: 1.086 MB / 1.022 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003518/0.9212, allocations: 1.46 MB / 1.024 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003585/0.9248, allocations: 1.554 MB / 1.025 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0008356/0.9257, allocations: 64 kB / 1.025 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003038/0.9287, allocations: 0.8617 MB / 1.026 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.001057/0.9298, allocations: 338.7 kB / 1.026 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.9309, allocations: 249.1 kB / 1.027 GB, free: 7.578 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003489/0.9344, allocations: 1.538 MB / 1.028 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.9344, allocations: 0 / 1.028 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.605e-06/0.9344, allocations: 0 / 1.028 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.000101/0.9345, allocations: 0 / 1.028 GB, free: 6.039 MB / 0.7794 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.00382/0.9384, allocations: 1.344 MB / 1.029 GB, free: 4.641 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/0.9384, allocations: 8.031 kB / 1.029 GB, free: 4.633 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002551/0.9387, allocations: 98.52 kB / 1.03 GB, free: 4.527 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007815/0.9395, allocations: 146.5 kB / 1.03 GB, free: 4.383 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002593/0.9421, allocations: 0.8566 MB / 1.031 GB, free: 3.473 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001575/0.9423, allocations: 85.31 kB / 1.031 GB, free: 3.387 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004492/0.9427, allocations: 123.9 kB / 1.031 GB, free: 3.266 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.9442, allocations: 0.6395 MB / 1.031 GB, free: 2.598 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.299e-05/0.9443, allocations: 4 kB / 1.031 GB, free: 2.594 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.676e-05/0.9443, allocations: 27.94 kB / 1.031 GB, free: 2.566 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.099e-05/0.9443, allocations: 16 kB / 1.031 GB, free: 2.551 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.9454, allocations: 476.8 kB / 1.032 GB, free: 2.086 MB / 0.7794 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.006204/0.9516, allocations: 2.875 MB / 1.035 GB, free: 15.06 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000747/0.9524, allocations: 305.4 kB / 1.035 GB, free: 14.76 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003374/0.9528, allocations: 165.2 kB / 1.035 GB, free: 14.59 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003714/0.9531, allocations: 340.7 kB / 1.035 GB, free: 14.19 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.9532, allocations: 38.84 kB / 1.035 GB, free: 14.14 MB / 0.795 GB Notification: Performance of pre-optimization done (n=33): time 2.345e-06/0.9532, allocations: 0 / 1.035 GB, free: 14.14 MB / 0.795 GB Notification: Performance of matching and sorting (n=33): time 0.001577/0.9548, allocations: 0.5409 MB / 1.036 GB, free: 13.59 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001435/0.9549, allocations: 55.41 kB / 1.036 GB, free: 13.53 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001489/0.9564, allocations: 0.8958 MB / 1.037 GB, free: 12.61 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0002361/0.9567, allocations: 57.7 kB / 1.037 GB, free: 12.55 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006127/0.9573, allocations: 0.5382 MB / 1.037 GB, free: 12 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.9574, allocations: 110.4 kB / 1.038 GB, free: 11.89 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.9575, allocations: 15.94 kB / 1.038 GB, free: 11.88 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.9576, allocations: 326 kB / 1.038 GB, free: 11.55 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003971/0.958, allocations: 181.2 kB / 1.038 GB, free: 11.38 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001844/0.9599, allocations: 1.143 MB / 1.039 GB, free: 9.871 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006298/0.9605, allocations: 302.8 kB / 1.039 GB, free: 9.578 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.9605, allocations: 0 / 1.039 GB, free: 9.578 MB / 0.795 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00148/0.962, allocations: 0.646 MB / 1.04 GB, free: 8.922 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002509/0.9623, allocations: 156.2 kB / 1.04 GB, free: 8.738 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.9623, allocations: 3.984 kB / 1.04 GB, free: 8.734 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.629e-05/0.9623, allocations: 4 kB / 1.04 GB, free: 8.73 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.9638, allocations: 239.7 kB / 1.041 GB, free: 8.496 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002332/0.9661, allocations: 2.95 MB / 1.043 GB, free: 5.43 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003684/0.9698, allocations: 0.7533 MB / 1.044 GB, free: 4.676 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001122/0.97, allocations: 27.92 kB / 1.044 GB, free: 4.648 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.97, allocations: 7.938 kB / 1.044 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001082/0.9711, allocations: 0.4933 MB / 1.045 GB, free: 4.148 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.9711, allocations: 4 kB / 1.045 GB, free: 4.145 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.9711, allocations: 4 kB / 1.045 GB, free: 4.141 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006448/0.9718, allocations: 167.8 kB / 1.045 GB, free: 3.977 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/0.9718, allocations: 8.188 kB / 1.045 GB, free: 3.969 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003225/0.975, allocations: 0.7339 MB / 1.046 GB, free: 3.234 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.737e-05/0.9751, allocations: 23.95 kB / 1.046 GB, free: 3.211 MB / 0.795 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.0008365/0.9759, allocations: 333.9 kB / 1.046 GB, free: 2.871 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003209/0.9763, allocations: 94.78 kB / 1.046 GB, free: 2.777 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.9775, allocations: 0.5204 MB / 1.046 GB, free: 2.254 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-05/0.9776, allocations: 4 kB / 1.046 GB, free: 2.25 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.9776, allocations: 4 kB / 1.046 GB, free: 2.246 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.9776, allocations: 0 / 1.046 GB, free: 2.246 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002737/0.9803, allocations: 1.276 MB / 1.048 GB, free: 0.9023 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/0.9804, allocations: 0 / 1.048 GB, free: 0.9023 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005754/0.981, allocations: 127.8 kB / 1.048 GB, free: 0.7773 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.581e-05/0.981, allocations: 11.89 kB / 1.048 GB, free: 0.7656 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.654e-05/0.981, allocations: 12 kB / 1.048 GB, free: 0.7539 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001761/0.9828, allocations: 2.942 MB / 1.051 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/0.9828, allocations: 7.984 kB / 1.051 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/0.9839, allocations: 0.5697 MB / 1.051 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005246/0.9844, allocations: 227.6 kB / 1.052 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002025/0.9846, allocations: 8 kB / 1.052 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006343/0.9853, allocations: 63.88 kB / 1.052 GB, free: 12.78 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.987e-05/0.9854, allocations: 39.84 kB / 1.052 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.433e-05/0.9854, allocations: 8 kB / 1.052 GB, free: 12.73 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0009639/0.9864, allocations: 0.6006 MB / 1.052 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9864, allocations: 0 / 1.052 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.002088/0.9885, allocations: 0.5423 MB / 1.053 GB, free: 11.58 MB / 0.8106 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.002245/0.9907, allocations: 1.336 MB / 1.054 GB, free: 10.21 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.003113/0.9939, allocations: 0.8355 MB / 1.055 GB, free: 9.379 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.9939, allocations: 0 / 1.055 GB, free: 9.379 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006244/0.9945, allocations: 243.6 kB / 1.055 GB, free: 9.141 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002672/0.9972, allocations: 487.1 kB / 1.056 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/1.008, allocations: 5.077 MB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009168/1.009, allocations: 1.029 MB / 1.062 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.001579/1.01, allocations: 207 kB / 1.062 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006301/1.011, allocations: 363.3 kB / 1.062 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of SimCode: time 1.533e-06/1.011, allocations: 4 kB / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06264/1.074, allocations: 32.25 MB / 1.094 GB, free: 2.121 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002117/1.074, allocations: 261.3 kB / 1.094 GB, free: 1.766 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.768/3.842, allocations: 0 / 1.094 GB, free: 1.766 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat does not exist to compare? outputFormat=mat