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.0009328/0.0009329, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001473/0.001474, allocations: 172.7 kB / 15.95 MB, free: 208 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.465/1.465, allocations: 223.3 MB / 240 MB, free: 5.391 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.493/2.493, allocations: 390.4 MB / 0.6655 GB, free: 2.867 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003549, allocations: 12 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.794/0.7944, allocations: 142.3 MB / 0.9539 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.02813/0.8226, allocations: 27.39 MB / 0.9806 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01273/0.8354, allocations: 7.66 MB / 0.9881 GB, free: 12.05 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002056/0.8375, allocations: 35.94 kB / 0.9881 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001456/0.839, allocations: 300.5 kB / 0.9884 GB, free: 11.77 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.004753/0.8437, allocations: 1.082 MB / 0.9895 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.00352/0.8473, allocations: 0.9553 MB / 0.9904 GB, free: 10.25 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.00586/0.8531, allocations: 3.533 MB / 0.9938 GB, free: 7.09 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002521/0.8557, allocations: 1.088 MB / 0.9949 GB, free: 5.988 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003918/0.8596, allocations: 1.46 MB / 0.9963 GB, free: 4.523 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003624/0.8633, allocations: 1.558 MB / 0.9978 GB, free: 2.961 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.000807/0.8641, allocations: 68 kB / 0.9979 GB, free: 2.895 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003189/0.8673, allocations: 0.8656 MB / 0.9988 GB, free: 2.027 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.001016/0.8684, allocations: 326.8 kB / 0.9991 GB, free: 1.707 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0009343/0.8693, allocations: 245.1 kB / 0.9993 GB, free: 1.461 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.002896/0.8722, allocations: 1.543 MB / 1.001 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/0.8722, allocations: 0 / 1.001 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.483e-06/0.8723, allocations: 0 / 1.001 GB, free: 15.91 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.936e-05/0.8723, allocations: 0 / 1.001 GB, free: 15.91 MB / 0.7637 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.003266/0.8756, allocations: 1.344 MB / 1.002 GB, free: 14.52 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.8757, allocations: 8.031 kB / 1.002 GB, free: 14.51 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002573/0.8759, allocations: 106.4 kB / 1.002 GB, free: 14.4 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006343/0.8766, allocations: 150.5 kB / 1.002 GB, free: 14.25 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002196/0.8788, allocations: 0.8565 MB / 1.003 GB, free: 13.34 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.8789, allocations: 81.31 kB / 1.003 GB, free: 13.26 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003368/0.8793, allocations: 116 kB / 1.003 GB, free: 13.14 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.8805, allocations: 0.6434 MB / 1.004 GB, free: 12.47 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.8806, allocations: 0 / 1.004 GB, free: 12.47 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.279e-05/0.8806, allocations: 24 kB / 1.004 GB, free: 12.45 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/0.8806, allocations: 19.95 kB / 1.004 GB, free: 12.43 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009087/0.8816, allocations: 468.9 kB / 1.005 GB, free: 11.97 MB / 0.7637 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.004605/0.8862, allocations: 2.891 MB / 1.007 GB, free: 8.926 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006172/0.8868, allocations: 309.3 kB / 1.008 GB, free: 8.617 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.8871, allocations: 153.3 kB / 1.008 GB, free: 8.465 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003459/0.8875, allocations: 344.7 kB / 1.008 GB, free: 8.055 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.353e-05/0.8875, allocations: 38.78 kB / 1.008 GB, free: 8.008 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=33): time 2.695e-06/0.8875, allocations: 4 kB / 1.008 GB, free: 8.004 MB / 0.7637 GB Notification: Performance of matching and sorting (n=33): time 0.00141/0.889, allocations: 0.5408 MB / 1.009 GB, free: 7.457 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.889, allocations: 59.41 kB / 1.009 GB, free: 7.387 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/0.8901, allocations: 0.8919 MB / 1.01 GB, free: 6.477 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001848/0.8903, allocations: 53.7 kB / 1.01 GB, free: 6.418 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005648/0.8909, allocations: 0.5423 MB / 1.01 GB, free: 5.863 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.891, allocations: 110.3 kB / 1.01 GB, free: 5.754 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.274e-05/0.8911, allocations: 20 kB / 1.01 GB, free: 5.734 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.8912, allocations: 329.9 kB / 1.011 GB, free: 5.406 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003522/0.8916, allocations: 173.2 kB / 1.011 GB, free: 5.238 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.8929, allocations: 1.143 MB / 1.012 GB, free: 3.727 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004969/0.8934, allocations: 306.8 kB / 1.012 GB, free: 3.43 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.8934, allocations: 4 kB / 1.012 GB, free: 3.426 MB / 0.7637 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001249/0.8947, allocations: 0.6385 MB / 1.013 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001118/0.8948, allocations: 156.2 kB / 1.013 GB, free: 2.598 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.8948, allocations: 4 kB / 1.013 GB, free: 2.594 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.8948, allocations: 7.984 kB / 1.013 GB, free: 2.586 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.8962, allocations: 235.7 kB / 1.013 GB, free: 2.355 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001705/0.8979, allocations: 2.961 MB / 1.016 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003205/0.9011, allocations: 0.7495 MB / 1.017 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.9012, allocations: 31.98 kB / 1.017 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.9013, allocations: 4 kB / 1.017 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009957/0.9023, allocations: 0.4933 MB / 1.017 GB, free: 14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.9023, allocations: 4 kB / 1.017 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.925e-06/0.9023, allocations: 4 kB / 1.017 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006533/0.9029, allocations: 155.8 kB / 1.018 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.757e-05/0.903, allocations: 11.98 kB / 1.018 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00343/0.9064, allocations: 0.7419 MB / 1.018 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.585e-05/0.9065, allocations: 23.98 kB / 1.018 GB, free: 13.06 MB / 0.7794 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.0008189/0.9073, allocations: 333.9 kB / 1.019 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002564/0.9076, allocations: 98.77 kB / 1.019 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001196/0.9088, allocations: 0.5241 MB / 1.019 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.238e-05/0.9088, allocations: 11.98 kB / 1.019 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.9089, allocations: 0 / 1.019 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.9089, allocations: 0 / 1.019 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.9113, allocations: 1.272 MB / 1.02 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.9113, allocations: 0 / 1.02 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000572/0.9119, allocations: 116 kB / 1.021 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.535e-05/0.9119, allocations: 3.984 kB / 1.021 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.578e-05/0.9119, allocations: 15.94 kB / 1.021 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001955/0.9139, allocations: 2.938 MB / 1.023 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.9139, allocations: 4.062 kB / 1.023 GB, free: 7.551 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.915, allocations: 0.5814 MB / 1.024 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004259/0.9154, allocations: 227.6 kB / 1.024 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.9155, allocations: 12 kB / 1.024 GB, free: 6.688 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005148/0.916, allocations: 59.88 kB / 1.024 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.498e-05/0.9161, allocations: 23.97 kB / 1.024 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.365e-05/0.9162, allocations: 19.98 kB / 1.024 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0007785/0.917, allocations: 0.6045 MB / 1.025 GB, free: 5.973 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.01e-07/0.917, allocations: 0 / 1.025 GB, free: 5.973 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001652/0.9186, allocations: 0.55 MB / 1.025 GB, free: 5.422 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.001953/0.9206, allocations: 1.323 MB / 1.027 GB, free: 4.066 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.002541/0.9231, allocations: 0.8431 MB / 1.028 GB, free: 3.223 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.9232, allocations: 4 kB / 1.028 GB, free: 3.219 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0005425/0.9237, allocations: 232.6 kB / 1.028 GB, free: 2.992 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002377/0.9261, allocations: 491.7 kB / 1.028 GB, free: 2.516 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007822/0.9339, allocations: 5.077 MB / 1.033 GB, free: 13.21 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005589/0.9345, allocations: 1.025 MB / 1.034 GB, free: 12.16 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001354/0.9359, allocations: 214.9 kB / 1.034 GB, free: 11.95 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004796/0.9364, allocations: 359.3 kB / 1.035 GB, free: 11.59 MB / 0.795 GB Notification: Performance of SimCode: time 1.463e-06/0.9364, allocations: 0 / 1.035 GB, free: 11.59 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05904/0.9954, allocations: 32.27 MB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002123/0.9957, allocations: 253 kB / 1.067 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.662/3.658, allocations: 0 / 1.067 GB, free: 11.63 MB / 0.8262 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