Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="Buildings_9_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.001118/0.001117, allocations: 100 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.0009986/0.0009986, allocations: 177.3 kB / 15.95 MB, free: 216 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.417/1.417, allocations: 223.2 MB / 239.9 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.412/2.412, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003803/0.0003803, allocations: 12 kB / 0.8146 GB, free: 14.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7755/0.7759, allocations: 142.3 MB / 0.9536 GB, free: 8.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02785/0.8038, allocations: 25.03 MB / 0.978 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01297/0.8168, allocations: 7.042 MB / 0.9849 GB, free: 14.76 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002017/0.8189, allocations: 27.09 kB / 0.9849 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001537/0.8204, allocations: 371.9 kB / 0.9853 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.006415/0.8269, allocations: 1.447 MB / 0.9867 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004956/0.8318, allocations: 1.194 MB / 0.9879 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.005519/0.8374, allocations: 2.12 MB / 0.9899 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002243/0.8396, allocations: 1.09 MB / 0.991 GB, free: 9.809 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003282/0.8429, allocations: 1.289 MB / 0.9923 GB, free: 8.516 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003052/0.846, allocations: 1.293 MB / 0.9935 GB, free: 7.219 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0004746/0.8465, allocations: 67.94 kB / 0.9936 GB, free: 7.152 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002739/0.8493, allocations: 0.9088 MB / 0.9945 GB, free: 6.242 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0004979/0.8498, allocations: 326.8 kB / 0.9948 GB, free: 5.922 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0005964/0.8504, allocations: 249.1 kB / 0.995 GB, free: 5.672 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.002138/0.8525, allocations: 1.542 MB / 0.9965 GB, free: 4.129 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.8525, allocations: 0 / 0.9965 GB, free: 4.129 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.763e-06/0.8525, allocations: 0 / 0.9965 GB, free: 4.129 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.88e-05/0.8526, allocations: 4 kB / 0.9965 GB, free: 4.125 MB / 0.7481 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.002555/0.8551, allocations: 1.34 MB / 0.9978 GB, free: 2.734 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.8552, allocations: 12.02 kB / 0.9979 GB, free: 2.723 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001275/0.8553, allocations: 98.52 kB / 0.998 GB, free: 2.617 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003865/0.8557, allocations: 150.5 kB / 0.9981 GB, free: 2.469 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001964/0.8577, allocations: 0.8604 MB / 0.9989 GB, free: 1.551 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.638e-05/0.8578, allocations: 81.31 kB / 0.999 GB, free: 1.473 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002113/0.858, allocations: 120 kB / 0.9991 GB, free: 1.355 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.8591, allocations: 0.6356 MB / 0.9997 GB, free: 0.6914 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.8592, allocations: 0 / 0.9997 GB, free: 0.6914 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.342e-05/0.8592, allocations: 28 kB / 0.9998 GB, free: 0.6641 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.609e-05/0.8592, allocations: 15.95 kB / 0.9998 GB, free: 0.6484 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008885/0.8601, allocations: 472.9 kB / 1 GB, free: 192 kB / 0.7481 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.004807/0.865, allocations: 2.887 MB / 1.003 GB, free: 13.14 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006048/0.8656, allocations: 312.6 kB / 1.003 GB, free: 12.83 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003293/0.8659, allocations: 344.7 kB / 1.004 GB, free: 12.42 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.866, allocations: 38.84 kB / 1.004 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=33): time 2.544e-06/0.866, allocations: 0 / 1.004 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of matching and sorting (n=33): time 0.001309/0.8673, allocations: 0.5497 MB / 1.004 GB, free: 11.82 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.561e-05/0.8673, allocations: 59.28 kB / 1.004 GB, free: 11.75 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/0.8684, allocations: 0.8958 MB / 1.005 GB, free: 10.84 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001634/0.8686, allocations: 57.7 kB / 1.005 GB, free: 10.77 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005283/0.8691, allocations: 0.5344 MB / 1.006 GB, free: 10.23 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 9.409e-05/0.8692, allocations: 110.4 kB / 1.006 GB, free: 10.12 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-05/0.8693, allocations: 12 kB / 1.006 GB, free: 10.11 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.8694, allocations: 334 kB / 1.006 GB, free: 9.773 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003778/0.8698, allocations: 181.2 kB / 1.006 GB, free: 9.598 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.8712, allocations: 1.135 MB / 1.007 GB, free: 8.094 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005185/0.8717, allocations: 294.8 kB / 1.008 GB, free: 7.809 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.389e-05/0.8717, allocations: 0 / 1.008 GB, free: 7.809 MB / 0.7637 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001274/0.873, allocations: 0.6422 MB / 1.008 GB, free: 7.16 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.000402/0.8734, allocations: 0.8111 MB / 1.009 GB, free: 6.289 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.8735, allocations: 3.984 kB / 1.009 GB, free: 6.285 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.8735, allocations: 4 kB / 1.009 GB, free: 6.281 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/0.875, allocations: 239.6 kB / 1.009 GB, free: 6.047 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001855/0.8768, allocations: 2.965 MB / 1.012 GB, free: 2.965 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003397/0.8802, allocations: 0.7456 MB / 1.013 GB, free: 2.219 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.768e-05/0.8803, allocations: 23.98 kB / 1.013 GB, free: 2.195 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.8803, allocations: 4 kB / 1.013 GB, free: 2.191 MB / 0.7637 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009998/0.8814, allocations: 0.5011 MB / 1.014 GB, free: 1.688 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.8814, allocations: 4 kB / 1.014 GB, free: 1.684 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.254e-06/0.8814, allocations: 4.188 kB / 1.014 GB, free: 1.68 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006744/0.8821, allocations: 167.8 kB / 1.014 GB, free: 1.516 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.8821, allocations: 7.938 kB / 1.014 GB, free: 1.508 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003434/0.8855, allocations: 0.7377 MB / 1.014 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.871e-05/0.8856, allocations: 27.98 kB / 1.014 GB, free: 0.7422 MB / 0.7637 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.0007524/0.8864, allocations: 333.9 kB / 1.015 GB, free: 416 kB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002703/0.8867, allocations: 90.97 kB / 1.015 GB, free: 324 kB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/0.8879, allocations: 0.5241 MB / 1.015 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/0.8879, allocations: 8 kB / 1.015 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.8879, allocations: 0 / 1.015 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.8879, allocations: 7.938 kB / 1.015 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002207/0.8902, allocations: 1.268 MB / 1.017 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.8902, allocations: 0 / 1.017 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005536/0.8907, allocations: 131.8 kB / 1.017 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.8908, allocations: 4 kB / 1.017 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.8908, allocations: 8 kB / 1.017 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001555/0.8924, allocations: 2.942 MB / 1.02 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.8924, allocations: 4.031 kB / 1.02 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/0.8934, allocations: 0.6302 MB / 1.02 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004447/0.8939, allocations: 227.6 kB / 1.021 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001034/0.894, allocations: 7.984 kB / 1.021 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005272/0.8945, allocations: 59.88 kB / 1.021 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.639e-05/0.8946, allocations: 27.97 kB / 1.021 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.281e-05/0.8946, allocations: 19.98 kB / 1.021 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000776/0.8954, allocations: 0.6006 MB / 1.021 GB, free: 9.586 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.31e-07/0.8954, allocations: 0 / 1.021 GB, free: 9.586 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001801/0.8972, allocations: 0.5345 MB / 1.022 GB, free: 9.051 MB / 0.7794 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.002129/0.8994, allocations: 1.664 MB / 1.023 GB, free: 7.34 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.002824/0.9022, allocations: 0.8429 MB / 1.024 GB, free: 6.496 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.9022, allocations: 0 / 1.024 GB, free: 6.496 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006103/0.9028, allocations: 233.1 kB / 1.024 GB, free: 6.27 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/0.9053, allocations: 472.4 kB / 1.025 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004594/0.9099, allocations: 3.561 MB / 1.028 GB, free: 2.137 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007112/0.9107, allocations: 1.054 MB / 1.029 GB, free: 1.055 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.001145/0.9118, allocations: 211 kB / 1.03 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004667/0.9123, allocations: 363.3 kB / 1.03 GB, free: 500 kB / 0.7794 GB Notification: Performance of SimCode: time 6.82e-07/0.9123, allocations: 0 / 1.03 GB, free: 500 kB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05893/0.9712, allocations: 31.7 MB / 1.061 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002195/0.9715, allocations: 254.5 kB / 1.061 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.752/3.723, allocations: 0 / 1.061 GB, free: 1.102 MB / 0.8106 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat does not exist to compare? outputFormat=mat