Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.TwoWayValvesTable,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",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.0008597/0.0008597, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.005028/0.005028, allocations: 172.9 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.247/1.247, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.155/2.155, allocations: 390.9 MB / 0.6664 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003253/0.0003254, allocations: 8 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5965/0.5968, allocations: 142.4 MB / 0.9552 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01392/0.6108, allocations: 14.96 MB / 0.9698 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.006439/0.6172, allocations: 4.297 MB / 0.974 GB, free: 8.203 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005572/0.6178, allocations: 9.688 kB / 0.974 GB, free: 8.199 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0008456/0.6187, allocations: 214 kB / 0.9742 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001601/0.6203, allocations: 0.552 MB / 0.9747 GB, free: 7.605 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001763/0.6221, allocations: 0.6387 MB / 0.9754 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001471/0.6236, allocations: 1.316 MB / 0.9766 GB, free: 6.43 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003917/0.624, allocations: 288.9 kB / 0.9769 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005995/0.6246, allocations: 379.5 kB / 0.9773 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004082/0.625, allocations: 314.6 kB / 0.9776 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.372e-05/0.625, allocations: 18.66 kB / 0.9776 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001043/0.6261, allocations: 0.6012 MB / 0.9782 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 9.52e-05/0.6262, allocations: 81.64 kB / 0.9783 GB, free: 5.48 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002073/0.6264, allocations: 234.8 kB / 0.9785 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0008591/0.6273, allocations: 0.7383 MB / 0.9792 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.6273, allocations: 0 / 0.9792 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.463e-06/0.6273, allocations: 0 / 0.9792 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.6273, allocations: 1.469 kB / 0.9792 GB, free: 4.844 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001064/0.6284, allocations: 0.7487 MB / 0.9799 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.6284, allocations: 8.656 kB / 0.9799 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.164e-05/0.6285, allocations: 58.73 kB / 0.98 GB, free: 4.125 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.305e-05/0.6286, allocations: 54.47 kB / 0.9801 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000504/0.6291, allocations: 419.1 kB / 0.9805 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.6291, allocations: 19.56 kB / 0.9805 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.73e-05/0.6292, allocations: 31.28 kB / 0.9805 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000423/0.6296, allocations: 217.6 kB / 0.9807 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.6296, allocations: 1.125 kB / 0.9807 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.294e-05/0.6297, allocations: 9.344 kB / 0.9807 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.6297, allocations: 9.75 kB / 0.9807 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004081/0.6301, allocations: 179.8 kB / 0.9809 GB, free: 3.484 MB / 0.7325 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.001485/0.6316, allocations: 0.9556 MB / 0.9818 GB, free: 2.684 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.6319, allocations: 136 kB / 0.982 GB, free: 2.609 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.632, allocations: 78.25 kB / 0.982 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002421/0.6323, allocations: 335.7 kB / 0.9824 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.6323, allocations: 35.52 kB / 0.9824 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 2.705e-06/0.6323, allocations: 0 / 0.9824 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0005961/0.6329, allocations: 253.4 kB / 0.9826 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.633, allocations: 52.78 kB / 0.9827 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004839/0.6335, allocations: 482.5 kB / 0.9831 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.6335, allocations: 31.2 kB / 0.9832 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.6337, allocations: 225.3 kB / 0.9834 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.416e-05/0.6337, allocations: 46.45 kB / 0.9834 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-05/0.6337, allocations: 27.7 kB / 0.9835 GB, free: 1.359 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.6339, allocations: 361 kB / 0.9838 GB, free: 1.008 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.6341, allocations: 64.75 kB / 0.9839 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002483/0.6343, allocations: 167.8 kB / 0.984 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003423/0.6347, allocations: 175 kB / 0.9842 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.6347, allocations: 0 / 0.9842 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005239/0.6352, allocations: 260.3 kB / 0.9844 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.446e-05/0.6353, allocations: 114.4 kB / 0.9845 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.82e-06/0.6353, allocations: 1.531 kB / 0.9845 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.6353, allocations: 1.125 kB / 0.9846 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002263/0.6355, allocations: 50 kB / 0.9846 GB, free: 0.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.6355, allocations: 10.16 kB / 0.9846 GB, free: 0.4922 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003449/0.6359, allocations: 47.91 kB / 0.9847 GB, free: 476 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.017e-05/0.6359, allocations: 10.64 kB / 0.9847 GB, free: 472 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.671e-06/0.6359, allocations: 4.188 kB / 0.9847 GB, free: 472 kB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004023/0.6364, allocations: 193.2 kB / 0.9849 GB, free: 384 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-06/0.6364, allocations: 1.312 kB / 0.9849 GB, free: 384 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.685e-06/0.6364, allocations: 1.312 kB / 0.9849 GB, free: 384 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.6366, allocations: 45.88 kB / 0.9849 GB, free: 376 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.715e-06/0.6366, allocations: 1.438 kB / 0.9849 GB, free: 376 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000304/0.6369, allocations: 42.81 kB / 0.9849 GB, free: 352 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.6369, allocations: 10.91 kB / 0.985 GB, free: 348 kB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001707/0.6371, allocations: 245.4 kB / 0.9852 GB, free: 116 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.328e-05/0.6372, allocations: 52.02 kB / 0.9852 GB, free: 84 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000534/0.6377, allocations: 267.1 kB / 0.9855 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.6377, allocations: 0 / 0.9855 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.6377, allocations: 4 kB / 0.9855 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.6377, allocations: 0 / 0.9855 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009061/0.6386, allocations: 0.7161 MB / 0.9862 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.6387, allocations: 4 kB / 0.9862 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.6388, allocations: 36.11 kB / 0.9862 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.6388, allocations: 0 / 0.9862 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.6388, allocations: 7.984 kB / 0.9862 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/0.6388, allocations: 7.938 kB / 0.9862 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.6388, allocations: 3.938 kB / 0.9863 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004419/0.6393, allocations: 349.5 kB / 0.9866 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.6394, allocations: 144.5 kB / 0.9867 GB, free: 14.43 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.865e-05/0.6395, allocations: 11.92 kB / 0.9867 GB, free: 14.42 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.6397, allocations: 27.92 kB / 0.9868 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.254e-05/0.6398, allocations: 15.92 kB / 0.9868 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.6398, allocations: 8 kB / 0.9868 GB, free: 14.37 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003164/0.6401, allocations: 330.9 kB / 0.9871 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6401, allocations: 0 / 0.9871 GB, free: 14.05 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006292/0.6408, allocations: 203.6 kB / 0.9873 GB, free: 13.85 MB / 0.7481 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001577/0.6423, allocations: 1.261 MB / 0.9885 GB, free: 12.7 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006099/0.643, allocations: 275.7 kB / 0.9888 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.634e-06/0.643, allocations: 4 kB / 0.9888 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001819/0.6432, allocations: 91.83 kB / 0.9889 GB, free: 12.34 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.6445, allocations: 224.3 kB / 0.9891 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.6489, allocations: 3.551 MB / 0.9926 GB, free: 8.465 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.6492, allocations: 0.827 MB / 0.9934 GB, free: 7.609 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002931/0.6495, allocations: 87.25 kB / 0.9934 GB, free: 7.523 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001801/0.6497, allocations: 143.4 kB / 0.9936 GB, free: 7.383 MB / 0.7481 GB Notification: Performance of SimCode: time 7.61e-07/0.6497, allocations: 0 / 0.9936 GB, free: 7.383 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03258/0.6823, allocations: 12.15 MB / 1.005 GB, free: 11.49 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001899/0.6825, allocations: 254.3 kB / 1.006 GB, free: 11.23 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.131/2.813, allocations: 7.938 kB / 1.006 GB, free: 11.23 MB / 0.7637 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches