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.0008283/0.0008284, allocations: 92.08 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.001004/0.001004, 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.414/1.414, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.519/2.519, allocations: 409.4 MB / 0.684 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003384/0.0003385, allocations: 12 kB / 0.8378 GB, free: 6.43 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7688/0.7691, allocations: 146.8 MB / 0.9811 GB, free: 6.184 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent): time 0.01918/0.7884, allocations: 17.78 MB / 0.9985 GB, free: 4.344 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.006515/0.7949, allocations: 4.852 MB / 1.003 GB, free: 15.48 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005941/0.7955, allocations: 15.88 kB / 1.003 GB, free: 15.46 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0005937/0.7962, allocations: 190.7 kB / 1.003 GB, free: 15.27 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.001546/0.7977, allocations: 0.6168 MB / 1.004 GB, free: 14.66 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.001824/0.7995, allocations: 0.7423 MB / 1.005 GB, free: 13.92 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.001812/0.8014, allocations: 1.675 MB / 1.006 GB, free: 12.24 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005923/0.802, allocations: 419.2 kB / 1.007 GB, free: 11.82 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008636/0.8028, allocations: 0.5329 MB / 1.007 GB, free: 11.28 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005811/0.8034, allocations: 497.9 kB / 1.008 GB, free: 10.79 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 6.771e-05/0.8035, allocations: 28 kB / 1.008 GB, free: 10.77 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001066/0.8046, allocations: 0.6042 MB / 1.008 GB, free: 10.16 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.8047, allocations: 131.4 kB / 1.009 GB, free: 10.03 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.8049, allocations: 153.3 kB / 1.009 GB, free: 9.875 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0007238/0.8056, allocations: 0.7425 MB / 1.009 GB, free: 9.133 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.8056, allocations: 0 / 1.009 GB, free: 9.133 MB / 0.7637 GB Notification: Performance of FrontEnd: time 4.018e-06/0.8056, allocations: 0 / 1.009 GB, free: 9.133 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.434e-06/0.8056, allocations: 3.938 kB / 1.009 GB, free: 9.129 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001541/0.8072, allocations: 0.9967 MB / 1.01 GB, free: 8.078 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.8072, allocations: 8.031 kB / 1.01 GB, free: 8.07 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.743e-05/0.8073, allocations: 86.52 kB / 1.01 GB, free: 7.977 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.8074, allocations: 90.89 kB / 1.011 GB, free: 7.887 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006283/0.8081, allocations: 490.6 kB / 1.011 GB, free: 7.367 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.108e-05/0.8081, allocations: 37 kB / 1.011 GB, free: 7.332 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.806e-05/0.8082, allocations: 48 kB / 1.011 GB, free: 7.285 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009695/0.8092, allocations: 0.6372 MB / 1.012 GB, free: 6.586 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.8092, allocations: 3.938 kB / 1.012 GB, free: 6.582 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.152e-05/0.8093, allocations: 20 kB / 1.012 GB, free: 6.562 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.8093, allocations: 12 kB / 1.012 GB, free: 6.551 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009863/0.8103, allocations: 0.5112 MB / 1.012 GB, free: 6.039 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.003007/0.8133, allocations: 3.205 MB / 1.015 GB, free: 2.641 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006484/0.8139, allocations: 356.5 kB / 1.016 GB, free: 2.285 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004655/0.8144, allocations: 248.7 kB / 1.016 GB, free: 2.039 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003092/0.8147, allocations: 344.3 kB / 1.016 GB, free: 1.629 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.325e-05/0.8148, allocations: 34.66 kB / 1.016 GB, free: 1.586 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=38): time 1.754e-06/0.8148, allocations: 3.938 kB / 1.016 GB, free: 1.582 MB / 0.7637 GB Notification: Performance of matching and sorting (n=38): time 0.001978/0.8168, allocations: 0.8611 MB / 1.017 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.584e-05/0.8168, allocations: 55.41 kB / 1.017 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005806/0.8174, allocations: 0.59 MB / 1.018 GB, free: 28 kB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 4.45e-05/0.8175, allocations: 29.7 kB / 1.018 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002069/0.8177, allocations: 328.4 kB / 1.018 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.938e-05/0.8178, allocations: 126.2 kB / 1.018 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.844e-05/0.8178, allocations: 16 kB / 1.018 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000121/0.8179, allocations: 370.8 kB / 1.019 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000479/0.8184, allocations: 225.2 kB / 1.019 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005484/0.819, allocations: 371.9 kB / 1.019 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000539/0.8195, allocations: 256.7 kB / 1.019 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.8195, allocations: 4 kB / 1.019 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001366/0.8209, allocations: 0.7341 MB / 1.02 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.821, allocations: 219.3 kB / 1.02 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.8211, allocations: 4 kB / 1.02 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005631/0.8216, allocations: 152.8 kB / 1.021 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006496/0.8223, allocations: 159.7 kB / 1.021 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005934/0.8229, allocations: 0.6265 MB / 1.021 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000573/0.8235, allocations: 111.2 kB / 1.021 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-05/0.8236, allocations: 35.97 kB / 1.021 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.684e-06/0.8236, allocations: 11.94 kB / 1.021 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001222/0.8248, allocations: 0.6193 MB / 1.022 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.8248, allocations: 4 kB / 1.022 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.8248, allocations: 8 kB / 1.022 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006017/0.8255, allocations: 159.8 kB / 1.022 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.8255, allocations: 11.94 kB / 1.022 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005437/0.826, allocations: 87.69 kB / 1.022 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.274e-05/0.8261, allocations: 32 kB / 1.022 GB, free: 11.2 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.0002884/0.8264, allocations: 276.9 kB / 1.023 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.743e-05/0.8265, allocations: 67.16 kB / 1.023 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001518/0.828, allocations: 0.664 MB / 1.023 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.828, allocations: 8 kB / 1.023 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.8281, allocations: 0 / 1.023 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.8281, allocations: 7.938 kB / 1.023 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002617/0.8307, allocations: 1.402 MB / 1.025 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.8307, allocations: 0 / 1.025 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003581/0.8311, allocations: 87.88 kB / 1.025 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004085/0.8315, allocations: 132.9 kB / 1.025 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.569e-05/0.8316, allocations: 11.98 kB / 1.025 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005803/0.8321, allocations: 0.6498 MB / 1.026 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.8322, allocations: 0 / 1.026 GB, free: 7.781 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0013/0.8335, allocations: 0.7284 MB / 1.026 GB, free: 7.023 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002631/0.8337, allocations: 196.1 kB / 1.026 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.103e-05/0.8338, allocations: 16 kB / 1.026 GB, free: 6.797 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004398/0.8343, allocations: 51.94 kB / 1.027 GB, free: 6.746 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.719e-05/0.8344, allocations: 35.91 kB / 1.027 GB, free: 6.711 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.906e-05/0.8344, allocations: 20 kB / 1.027 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004338/0.8349, allocations: 395.1 kB / 1.027 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8349, allocations: 0 / 1.027 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.001123/0.836, allocations: 395.3 kB / 1.027 GB, free: 5.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.002052/0.8381, allocations: 1.474 MB / 1.029 GB, free: 4.414 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.002009/0.8401, allocations: 0.91 MB / 1.03 GB, free: 3.512 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.8401, allocations: 0 / 1.03 GB, free: 3.512 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006582/0.8408, allocations: 307.7 kB / 1.03 GB, free: 3.211 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001361/0.8421, allocations: 269.5 kB / 1.03 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006115/0.8483, allocations: 3.782 MB / 1.034 GB, free: 15.04 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004695/0.8488, allocations: 0.908 MB / 1.035 GB, free: 14.1 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0007068/0.8495, allocations: 156 kB / 1.035 GB, free: 13.95 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003664/0.8499, allocations: 247.3 kB / 1.035 GB, free: 13.71 MB / 0.795 GB Notification: Performance of SimCode: time 1.733e-06/0.8499, allocations: 0 / 1.035 GB, free: 13.71 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03431/0.8842, allocations: 17.73 MB / 1.052 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/0.8844, allocations: 288.9 kB / 1.053 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.378/3.262, allocations: 0 / 1.053 GB, free: 12.03 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