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.0014/0.0014, allocations: 99.55 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.001758/0.001759, 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 4.0.0+maint.om/package.mo): time 2.669/2.669, allocations: 223.2 MB / 239.9 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 5.201/5.201, allocations: 409.2 MB / 0.6838 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006885/0.0006887, allocations: 8 kB / 0.8375 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.567/1.568, allocations: 146.8 MB / 0.9809 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.04189/1.61, allocations: 25.04 MB / 1.005 GB, free: 13.21 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01855/1.628, allocations: 7.04 MB / 1.012 GB, free: 6.152 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002638/1.631, allocations: 27.75 kB / 1.012 GB, free: 6.125 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.002618/1.634, allocations: 378 kB / 1.013 GB, free: 5.754 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.009403/1.643, allocations: 1.444 MB / 1.014 GB, free: 4.309 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.006389/1.65, allocations: 1.2 MB / 1.015 GB, free: 3.125 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.007269/1.657, allocations: 2.1 MB / 1.017 GB, free: 1.023 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004048/1.661, allocations: 1.106 MB / 1.018 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005553/1.667, allocations: 1.289 MB / 1.02 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004868/1.672, allocations: 1.293 MB / 1.021 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.00148/1.673, allocations: 68 kB / 1.021 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004532/1.678, allocations: 0.8971 MB / 1.022 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.001269/1.679, allocations: 338.8 kB / 1.022 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0009902/1.68, allocations: 245.1 kB / 1.022 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.004072/1.684, allocations: 1.545 MB / 1.024 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/1.684, allocations: 0 / 1.024 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.184e-06/1.684, allocations: 0 / 1.024 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.685e-05/1.684, allocations: 0 / 1.024 GB, free: 10.22 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.004973/1.689, allocations: 1.344 MB / 1.025 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.668e-05/1.689, allocations: 8.031 kB / 1.025 GB, free: 8.816 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002688/1.69, allocations: 102.5 kB / 1.025 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000831/1.691, allocations: 146.5 kB / 1.025 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003474/1.694, allocations: 0.8566 MB / 1.026 GB, free: 7.652 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/1.694, allocations: 81.31 kB / 1.026 GB, free: 7.57 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003799/1.695, allocations: 116 kB / 1.026 GB, free: 7.457 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/1.696, allocations: 0.6317 MB / 1.027 GB, free: 6.797 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/1.696, allocations: 4 kB / 1.027 GB, free: 6.793 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/1.697, allocations: 27.98 kB / 1.027 GB, free: 6.766 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.424e-05/1.697, allocations: 23.94 kB / 1.027 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/1.698, allocations: 472.8 kB / 1.028 GB, free: 6.281 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.008482/1.707, allocations: 2.871 MB / 1.03 GB, free: 3.262 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009805/1.708, allocations: 325.3 kB / 1.031 GB, free: 2.938 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005038/1.708, allocations: 344.6 kB / 1.031 GB, free: 2.527 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001484/1.708, allocations: 34.84 kB / 1.031 GB, free: 2.484 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=33): time 4.128e-06/1.708, allocations: 4 kB / 1.031 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=33): time 0.002604/1.711, allocations: 0.5411 MB / 1.032 GB, free: 1.934 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.949e-05/1.711, allocations: 59.41 kB / 1.032 GB, free: 1.863 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002004/1.713, allocations: 0.8958 MB / 1.032 GB, free: 0.9492 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0003791/1.713, allocations: 53.7 kB / 1.033 GB, free: 0.8906 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008149/1.714, allocations: 0.5343 MB / 1.033 GB, free: 356 kB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/1.714, allocations: 114.4 kB / 1.033 GB, free: 240 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.621e-05/1.714, allocations: 11.94 kB / 1.033 GB, free: 228 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002237/1.715, allocations: 330 kB / 1.033 GB, free: 15.89 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005909/1.715, allocations: 181.2 kB / 1.034 GB, free: 15.72 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002264/1.718, allocations: 1.132 MB / 1.035 GB, free: 14.22 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009185/1.718, allocations: 306.8 kB / 1.035 GB, free: 13.93 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/1.718, allocations: 0 / 1.035 GB, free: 13.93 MB / 0.795 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002318/1.721, allocations: 0.646 MB / 1.036 GB, free: 13.27 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006094/1.721, allocations: 0.8099 MB / 1.036 GB, free: 12.4 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/1.721, allocations: 0 / 1.036 GB, free: 12.4 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.72e-05/1.722, allocations: 8 kB / 1.036 GB, free: 12.39 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002109/1.724, allocations: 239.6 kB / 1.037 GB, free: 12.16 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002377/1.726, allocations: 2.954 MB / 1.04 GB, free: 9.086 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005553/1.732, allocations: 0.7455 MB / 1.04 GB, free: 8.34 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002022/1.732, allocations: 27.98 kB / 1.04 GB, free: 8.312 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/1.732, allocations: 4 kB / 1.04 GB, free: 8.309 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001654/1.734, allocations: 0.5012 MB / 1.041 GB, free: 7.809 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/1.734, allocations: 7.891 kB / 1.041 GB, free: 7.801 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/1.734, allocations: 4 kB / 1.041 GB, free: 7.797 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/1.735, allocations: 172 kB / 1.041 GB, free: 7.629 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.514e-05/1.735, allocations: 4 kB / 1.041 GB, free: 7.625 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005338/1.74, allocations: 0.7378 MB / 1.042 GB, free: 6.887 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001566/1.74, allocations: 24 kB / 1.042 GB, free: 6.863 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.001181/1.741, allocations: 329.9 kB / 1.042 GB, free: 6.527 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004331/1.742, allocations: 98.78 kB / 1.042 GB, free: 6.43 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001912/1.744, allocations: 0.5242 MB / 1.043 GB, free: 5.902 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/1.744, allocations: 4 kB / 1.043 GB, free: 5.898 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/1.744, allocations: 0 / 1.043 GB, free: 5.898 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/1.744, allocations: 0 / 1.043 GB, free: 5.898 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003317/1.747, allocations: 1.272 MB / 1.044 GB, free: 4.559 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/1.747, allocations: 0 / 1.044 GB, free: 4.559 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008202/1.748, allocations: 123.8 kB / 1.044 GB, free: 4.438 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.451e-05/1.748, allocations: 7.938 kB / 1.044 GB, free: 4.43 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/1.748, allocations: 8 kB / 1.044 GB, free: 4.422 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002045/1.75, allocations: 2.946 MB / 1.047 GB, free: 1.359 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/1.75, allocations: 4.031 kB / 1.047 GB, free: 1.355 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/1.752, allocations: 0.6338 MB / 1.048 GB, free: 0.6719 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006305/1.752, allocations: 223.6 kB / 1.048 GB, free: 444 kB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/1.752, allocations: 8 kB / 1.048 GB, free: 436 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008694/1.753, allocations: 67.86 kB / 1.048 GB, free: 368 kB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/1.754, allocations: 27.86 kB / 1.048 GB, free: 340 kB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.665e-05/1.754, allocations: 16 kB / 1.048 GB, free: 324 kB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001348/1.755, allocations: 0.5928 MB / 1.048 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.2e-07/1.755, allocations: 8 kB / 1.048 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.002832/1.758, allocations: 0.5384 MB / 1.049 GB, free: 15.17 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.003058/1.761, allocations: 1.651 MB / 1.051 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.004069/1.765, allocations: 0.8394 MB / 1.051 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/1.765, allocations: 0 / 1.051 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0009569/1.766, allocations: 251.3 kB / 1.052 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004311/1.77, allocations: 472.7 kB / 1.052 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009306/1.78, allocations: 3.565 MB / 1.056 GB, free: 8.254 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/1.781, allocations: 1.05 MB / 1.057 GB, free: 7.176 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.00217/1.783, allocations: 211 kB / 1.057 GB, free: 6.965 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007393/1.784, allocations: 367.3 kB / 1.057 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of SimCode: time 1.763e-06/1.784, allocations: 0 / 1.057 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1571/1.941, allocations: 31.68 MB / 1.088 GB, free: 7.551 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.001275/1.942, allocations: 262.2 kB / 1.088 GB, free: 7.191 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.499/7.441, allocations: 1.828 kB / 1.088 GB, free: 7.191 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