Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.351/2.351, allocations: 390.5 MB / 398 MB, free: 10.97 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 180.8 kB / 491.2 MB, free: 1.551 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.56/1.56, allocations: 221.5 MB / 0.7868 GB, free: 13.27 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009412/0.0009412, allocations: 87.95 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.293e-05/2.296e-05, allocations: 4 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2971/0.2971, allocations: 143 MB / 1.212 GB, free: 39.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.199/1.496, allocations: 395 MB / 1.598 GB, free: 3.25 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003309/1.496, allocations: 95 kB / 1.598 GB, free: 3.199 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.289/2.785, allocations: 238.9 MB / 1.832 GB, free: 364.6 MB / 1.151 GB Notification: Performance of FrontEnd: time 3.497e-06/2.785, allocations: 3.75 kB / 1.832 GB, free: 364.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001172/2.785, allocations: 17.84 kB / 1.832 GB, free: 364.6 MB / 1.151 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.00295/2.788, allocations: 0.9837 MB / 1.833 GB, free: 363.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.907e-05/2.788, allocations: 10.91 kB / 1.833 GB, free: 363.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004115/2.789, allocations: 78.75 kB / 1.833 GB, free: 363.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/2.79, allocations: 0.5129 MB / 1.833 GB, free: 363.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.976e-05/2.79, allocations: 14.75 kB / 1.833 GB, free: 363.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/2.79, allocations: 28.38 kB / 1.833 GB, free: 363.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006958/2.791, allocations: 358.3 kB / 1.833 GB, free: 363.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008344/2.792, allocations: 0.5061 MB / 1.834 GB, free: 362.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/2.792, allocations: 11.06 kB / 1.834 GB, free: 362.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.1e-05/2.792, allocations: 0 / 1.834 GB, free: 362.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/2.792, allocations: 18.86 kB / 1.834 GB, free: 362.9 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.003378/2.795, allocations: 3.124 MB / 1.837 GB, free: 360 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004179/2.796, allocations: 283.5 kB / 1.837 GB, free: 359.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002381/2.796, allocations: 175.3 kB / 1.837 GB, free: 359.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000297/2.796, allocations: 348 kB / 1.838 GB, free: 359.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/2.796, allocations: 40.88 kB / 1.838 GB, free: 359.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=38): time 2.164e-06/2.797, allocations: 0 / 1.838 GB, free: 359.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=38): time 0.002136/2.799, allocations: 0.671 MB / 1.839 GB, free: 359 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.579e-05/2.799, allocations: 57.84 kB / 1.839 GB, free: 358.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004785/2.799, allocations: 446.4 kB / 1.839 GB, free: 358.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.408e-05/2.799, allocations: 25.7 kB / 1.839 GB, free: 358.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002073/2.799, allocations: 332.2 kB / 1.839 GB, free: 358.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.885e-05/2.8, allocations: 131.7 kB / 1.839 GB, free: 358.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.714e-05/2.8, allocations: 0 / 1.839 GB, free: 358.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.13e-05/2.8, allocations: 373 kB / 1.84 GB, free: 357.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/2.8, allocations: 148.1 kB / 1.84 GB, free: 357.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003012/2.8, allocations: 325.3 kB / 1.84 GB, free: 357.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001406/2.802, allocations: 436.1 kB / 1.841 GB, free: 357.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/2.802, allocations: 0 / 1.841 GB, free: 357.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001997/2.804, allocations: 0.793 MB / 1.841 GB, free: 356.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.000412/2.804, allocations: 1.748 MB / 1.843 GB, free: 355.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/2.804, allocations: 7.875 kB / 1.843 GB, free: 355.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003976/2.804, allocations: 98.38 kB / 1.843 GB, free: 355 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005232/2.805, allocations: 142.1 kB / 1.843 GB, free: 355 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008441/2.806, allocations: 0.7019 MB / 1.844 GB, free: 354.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000703/2.807, allocations: 88.86 kB / 1.844 GB, free: 354.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.828e-05/2.807, allocations: 33.36 kB / 1.844 GB, free: 354.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/2.807, allocations: 9.344 kB / 1.844 GB, free: 354.3 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001873/2.809, allocations: 0.6653 MB / 1.845 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/2.809, allocations: 3.953 kB / 1.845 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/2.809, allocations: 7.531 kB / 1.845 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00059/2.809, allocations: 154.5 kB / 1.845 GB, free: 353.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.378e-05/2.809, allocations: 11.8 kB / 1.845 GB, free: 353.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007065/2.81, allocations: 87.91 kB / 1.845 GB, free: 353.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-05/2.81, allocations: 31.52 kB / 1.845 GB, free: 353.9 MB / 1.151 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001893/2.81, allocations: 112.7 kB / 1.845 GB, free: 353.8 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001743/2.812, allocations: 0.6335 MB / 1.846 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/2.812, allocations: 62.34 kB / 1.846 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002017/2.814, allocations: 0.7527 MB / 1.847 GB, free: 353 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/2.814, allocations: 3.25 kB / 1.847 GB, free: 353 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/2.814, allocations: 3.969 kB / 1.847 GB, free: 353 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/2.814, allocations: 11.62 kB / 1.847 GB, free: 353 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003064/2.817, allocations: 1.426 MB / 1.848 GB, free: 352 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/2.817, allocations: 3.812 kB / 1.848 GB, free: 352 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003474/2.818, allocations: 89.31 kB / 1.848 GB, free: 352 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000334/2.818, allocations: 121.3 kB / 1.848 GB, free: 351.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.398e-05/2.818, allocations: 3.875 kB / 1.848 GB, free: 351.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007729/2.819, allocations: 0.6907 MB / 1.849 GB, free: 351.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/2.819, allocations: 3.125 kB / 1.849 GB, free: 351.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00186/2.821, allocations: 0.8628 MB / 1.85 GB, free: 350.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003114/2.821, allocations: 198.2 kB / 1.85 GB, free: 350.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.986e-05/2.821, allocations: 0 / 1.85 GB, free: 350.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004882/2.822, allocations: 62.72 kB / 1.85 GB, free: 350.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.658e-05/2.822, allocations: 35.33 kB / 1.85 GB, free: 350.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/2.822, allocations: 15.75 kB / 1.85 GB, free: 350.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0003329/2.822, allocations: 335.9 kB / 1.85 GB, free: 350.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.5e-07/2.822, allocations: 0 / 1.85 GB, free: 350.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001461/2.824, allocations: 388.5 kB / 1.851 GB, free: 350.2 MB / 1.151 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 () * 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.002981/2.827, allocations: 1.945 MB / 1.853 GB, free: 348.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001399/2.828, allocations: 0.7079 MB / 1.853 GB, free: 348.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/2.828, allocations: 0 / 1.853 GB, free: 348.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004178/2.828, allocations: 239 kB / 1.854 GB, free: 348.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/2.83, allocations: 233.2 kB / 1.854 GB, free: 348.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/2.831, allocations: 0.8791 MB / 1.855 GB, free: 347.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/2.832, allocations: 0.9266 MB / 1.856 GB, free: 347 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0007536/2.833, allocations: 165.4 kB / 1.856 GB, free: 346.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002859/2.833, allocations: 231.5 kB / 1.856 GB, free: 346.7 MB / 1.151 GB Notification: Performance of SimCode: time 4.91e-07/2.833, allocations: 0 / 1.856 GB, free: 346.7 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04627/2.879, allocations: 17.46 MB / 1.873 GB, free: 333.3 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/2.879, allocations: 200.9 kB / 1.873 GB, free: 333.1 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.664/5.543, allocations: 0 / 1.873 GB, free: 333.1 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat does not exist to compare? outputFormat=mat