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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002026/0.002026, allocations: 98.53 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.002435/0.002435, 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.705/2.705, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.988/4.988, allocations: 409.2 MB / 0.6838 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0008198/0.0008201, allocations: 11.98 kB / 0.8375 GB, free: 6.586 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.726/1.726, allocations: 146.8 MB / 0.9809 GB, free: 6.348 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.03976/1.766, allocations: 16.32 MB / 0.9968 GB, free: 5.98 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.0153/1.782, allocations: 4.463 MB / 1.001 GB, free: 1.504 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002276/1.784, allocations: 19.88 kB / 1.001 GB, free: 1.484 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001536/1.786, allocations: 242.6 kB / 1.001 GB, free: 1.246 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.005898/1.792, allocations: 0.8257 MB / 1.002 GB, free: 428 kB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.004727/1.796, allocations: 0.9184 MB / 1.003 GB, free: 15.51 MB / 0.7638 GB Notification: Performance of NFFlatten.flatten: time 0.00389/1.8, allocations: 0.9544 MB / 1.004 GB, free: 14.55 MB / 0.7638 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001733/1.802, allocations: 419.2 kB / 1.004 GB, free: 14.13 MB / 0.7638 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001828/1.804, allocations: 0.5061 MB / 1.005 GB, free: 13.62 MB / 0.7638 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001033/1.805, allocations: 402.3 kB / 1.005 GB, free: 13.23 MB / 0.7638 GB Notification: Performance of NFPackage.collectConstants: time 0.0001152/1.805, allocations: 28 kB / 1.005 GB, free: 13.2 MB / 0.7638 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002284/1.808, allocations: 0.6474 MB / 1.006 GB, free: 12.55 MB / 0.7638 GB Notification: Performance of NFScalarize.scalarize: time 0.0002166/1.808, allocations: 127.5 kB / 1.006 GB, free: 12.43 MB / 0.7638 GB Notification: Performance of NFVerifyModel.verify: time 0.0003199/1.808, allocations: 149.3 kB / 1.006 GB, free: 12.27 MB / 0.7638 GB Notification: Performance of NFConvertDAE.convert: time 0.001724/1.81, allocations: 0.758 MB / 1.007 GB, free: 11.52 MB / 0.7638 GB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/1.81, allocations: 0 / 1.007 GB, free: 11.52 MB / 0.7638 GB Notification: Performance of FrontEnd: time 5.01e-06/1.81, allocations: 0 / 1.007 GB, free: 11.52 MB / 0.7638 GB Notification: Performance of Transformations before backend: time 2.186e-05/1.81, allocations: 0 / 1.007 GB, free: 11.52 MB / 0.7638 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.003227/1.813, allocations: 1.001 MB / 1.008 GB, free: 10.46 MB / 0.7638 GB Notification: Performance of prepare preOptimizeDAE: time 8.682e-05/1.813, allocations: 8.031 kB / 1.008 GB, free: 10.46 MB / 0.7638 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002006/1.813, allocations: 90.45 kB / 1.008 GB, free: 10.36 MB / 0.7638 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002789/1.814, allocations: 82.97 kB / 1.008 GB, free: 10.28 MB / 0.7638 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001399/1.815, allocations: 486.6 kB / 1.009 GB, free: 9.762 MB / 0.7638 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.514e-05/1.815, allocations: 37 kB / 1.009 GB, free: 9.727 MB / 0.7638 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/1.815, allocations: 51.94 kB / 1.009 GB, free: 9.676 MB / 0.7638 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001878/1.817, allocations: 0.6333 MB / 1.009 GB, free: 8.98 MB / 0.7638 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/1.817, allocations: 0 / 1.009 GB, free: 8.98 MB / 0.7638 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.747e-05/1.817, allocations: 24 kB / 1.009 GB, free: 8.957 MB / 0.7638 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.633e-05/1.817, allocations: 12 kB / 1.009 GB, free: 8.945 MB / 0.7638 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001813/1.819, allocations: 0.5112 MB / 1.01 GB, free: 8.434 MB / 0.7638 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.007229/1.827, allocations: 3.202 MB / 1.013 GB, free: 5.039 MB / 0.7638 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/1.828, allocations: 362.9 kB / 1.013 GB, free: 4.676 MB / 0.7638 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006327/1.828, allocations: 336.4 kB / 1.014 GB, free: 4.273 MB / 0.7638 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.109e-05/1.828, allocations: 42.59 kB / 1.014 GB, free: 4.223 MB / 0.7638 GB Notification: Performance of pre-optimization done (n=38): time 3.987e-06/1.828, allocations: 3.938 kB / 1.014 GB, free: 4.219 MB / 0.7638 GB Notification: Performance of matching and sorting (n=38): time 0.003607/1.832, allocations: 0.8578 MB / 1.015 GB, free: 3.332 MB / 0.7638 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.698e-05/1.832, allocations: 59.41 kB / 1.015 GB, free: 3.262 MB / 0.7638 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0013/1.834, allocations: 0.5822 MB / 1.015 GB, free: 2.672 MB / 0.7638 GB Notification: Performance of collectPreVariables (initialization): time 9.948e-05/1.834, allocations: 33.7 kB / 1.015 GB, free: 2.633 MB / 0.7638 GB Notification: Performance of collectInitialEqns (initialization): time 0.000387/1.834, allocations: 332.4 kB / 1.015 GB, free: 2.305 MB / 0.7638 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/1.834, allocations: 130.1 kB / 1.016 GB, free: 2.176 MB / 0.7638 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-05/1.834, allocations: 16 kB / 1.016 GB, free: 2.16 MB / 0.7638 GB Notification: Performance of setup shared object (initialization): time 0.0002749/1.835, allocations: 366.8 kB / 1.016 GB, free: 1.793 MB / 0.7638 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000717/1.835, allocations: 229.1 kB / 1.016 GB, free: 1.57 MB / 0.7638 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008974/1.836, allocations: 372 kB / 1.017 GB, free: 1.145 MB / 0.7638 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008166/1.837, allocations: 256.7 kB / 1.017 GB, free: 0.8906 MB / 0.7638 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/1.837, allocations: 0 / 1.017 GB, free: 0.8906 MB / 0.7638 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002327/1.839, allocations: 0.734 MB / 1.018 GB, free: 152 kB / 0.7638 GB Notification: Performance of prepare postOptimizeDAE: time 0.001224/1.841, allocations: 1.742 MB / 1.019 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.918e-05/1.841, allocations: 4 kB / 1.019 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009536/1.842, allocations: 152.7 kB / 1.019 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/1.843, allocations: 159.8 kB / 1.02 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009517/1.844, allocations: 0.6226 MB / 1.02 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/1.845, allocations: 111.2 kB / 1.02 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/1.845, allocations: 31.98 kB / 1.02 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/1.845, allocations: 8 kB / 1.02 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001957/1.847, allocations: 0.6194 MB / 1.021 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/1.847, allocations: 4 kB / 1.021 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/1.847, allocations: 8 kB / 1.021 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008828/1.848, allocations: 159.8 kB / 1.021 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.783e-05/1.848, allocations: 15.89 kB / 1.021 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009611/1.849, allocations: 95.62 kB / 1.021 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.698e-05/1.849, allocations: 31.98 kB / 1.021 GB, free: 12.23 MB / 0.7794 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 69 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005638/1.85, allocations: 268.9 kB / 1.021 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000223/1.85, allocations: 63.16 kB / 1.021 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002851/1.853, allocations: 0.6707 MB / 1.022 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.177e-05/1.853, allocations: 8 kB / 1.022 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.74e-05/1.853, allocations: 3.953 kB / 1.022 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.621e-05/1.853, allocations: 3.984 kB / 1.022 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004538/1.857, allocations: 1.402 MB / 1.024 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.357e-05/1.857, allocations: 4 kB / 1.024 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005884/1.858, allocations: 91.88 kB / 1.024 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007502/1.859, allocations: 128.9 kB / 1.024 GB, free: 9.508 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.492e-05/1.859, allocations: 12 kB / 1.024 GB, free: 9.496 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/1.86, allocations: 0.642 MB / 1.024 GB, free: 8.828 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/1.86, allocations: 4.031 kB / 1.024 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002338/1.862, allocations: 0.7607 MB / 1.025 GB, free: 8.016 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006016/1.863, allocations: 200.1 kB / 1.025 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/1.863, allocations: 12 kB / 1.025 GB, free: 7.789 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007432/1.864, allocations: 47.95 kB / 1.025 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/1.864, allocations: 35.91 kB / 1.025 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.285e-05/1.864, allocations: 19.98 kB / 1.025 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0008873/1.865, allocations: 399.1 kB / 1.026 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of sort global known variables: time 6.31e-07/1.865, allocations: 0 / 1.026 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.002122/1.867, allocations: 387.3 kB / 1.026 GB, free: 6.926 MB / 0.7794 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 () * Number of clocked 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.00411/1.871, allocations: 1.715 MB / 1.028 GB, free: 5.16 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0042/1.875, allocations: 0.9216 MB / 1.029 GB, free: 4.246 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 8.796e-06/1.875, allocations: 0 / 1.029 GB, free: 4.246 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.001209/1.877, allocations: 295.7 kB / 1.029 GB, free: 3.957 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/1.879, allocations: 252.9 kB / 1.029 GB, free: 3.711 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006335/1.886, allocations: 4.659 MB / 1.034 GB, free: 14.91 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000689/1.886, allocations: 0.9236 MB / 1.035 GB, free: 13.96 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.001127/1.888, allocations: 148.2 kB / 1.035 GB, free: 13.82 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005305/1.888, allocations: 247.3 kB / 1.035 GB, free: 13.57 MB / 0.795 GB Notification: Performance of SimCode: time 1.563e-06/1.888, allocations: 0 / 1.035 GB, free: 13.57 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1143/2.002, allocations: 17.41 MB / 1.052 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0005749/2.003, allocations: 285.2 kB / 1.052 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.515/6.518, allocations: 3.938 kB / 1.052 GB, free: 12.2 MB / 0.8106 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) Environment - environmentSimulation: 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