Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.TwoWayValveTable,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable",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.007328/0.007328, allocations: 99.67 kB / 15.73 MB, free: 6.004 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.002573/0.002573, allocations: 192.9 kB / 16.67 MB, free: 5.934 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.215/1.215, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.405/2.405, allocations: 482.6 MB / 0.7551 GB, free: 6.629 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 65.31 kB / 1.083 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.265, allocations: 162.3 MB / 1.242 GB, free: 8.91 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01674/0.2818, allocations: 17.45 MB / 1.259 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.005906/0.2877, allocations: 4.901 MB / 1.264 GB, free: 2.492 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002528/0.288, allocations: 15.88 kB / 1.264 GB, free: 2.477 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0006513/0.2887, allocations: 250.4 kB / 1.264 GB, free: 2.23 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001073/0.2898, allocations: 0.6062 MB / 1.265 GB, free: 1.621 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001441/0.2912, allocations: 0.7307 MB / 1.265 GB, free: 0.8984 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0009648/0.2922, allocations: 0.9624 MB / 1.266 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004193/0.2926, allocations: 332.9 kB / 1.266 GB, free: 15.6 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006342/0.2933, allocations: 466.1 kB / 1.267 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003569/0.2936, allocations: 306.7 kB / 1.267 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.914e-05/0.2937, allocations: 28 kB / 1.267 GB, free: 14.81 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00103/0.2947, allocations: 0.7253 MB / 1.268 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.2949, allocations: 127.6 kB / 1.268 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002186/0.2951, allocations: 246.6 kB / 1.268 GB, free: 13.72 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001021/0.2961, allocations: 0.8795 MB / 1.269 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.2961, allocations: 4 kB / 1.269 GB, free: 12.83 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.062e-06/0.2962, allocations: 0 / 1.269 GB, free: 12.83 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.2962, allocations: 4 kB / 1.269 GB, free: 12.83 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001101/0.2973, allocations: 0.8904 MB / 1.27 GB, free: 11.89 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.2973, allocations: 8.031 kB / 1.27 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.923e-05/0.2974, allocations: 58.73 kB / 1.27 GB, free: 11.81 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.2975, allocations: 60.56 kB / 1.27 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006365/0.2982, allocations: 481.8 kB / 1.271 GB, free: 11.25 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.2982, allocations: 20.56 kB / 1.271 GB, free: 11.22 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.809e-05/0.2982, allocations: 28 kB / 1.271 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004637/0.2987, allocations: 286.3 kB / 1.271 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.2987, allocations: 3.938 kB / 1.271 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.2987, allocations: 11.94 kB / 1.271 GB, free: 10.88 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.351e-06/0.2988, allocations: 4 kB / 1.271 GB, free: 10.88 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003925/0.2992, allocations: 194.1 kB / 1.271 GB, free: 10.69 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.3008, allocations: 1.476 MB / 1.273 GB, free: 9.098 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002968/0.3011, allocations: 158.8 kB / 1.273 GB, free: 8.934 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.3013, allocations: 88.81 kB / 1.273 GB, free: 8.844 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001397/0.3027, allocations: 1.26 MB / 1.274 GB, free: 7.391 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.3027, allocations: 46.44 kB / 1.274 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.3028, allocations: 0 / 1.274 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15): time 0.000572/0.3033, allocations: 253.2 kB / 1.274 GB, free: 7.082 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.3034, allocations: 51.41 kB / 1.274 GB, free: 7.02 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000599/0.304, allocations: 0.5808 MB / 1.275 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.304, allocations: 29.7 kB / 1.275 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001964/0.3042, allocations: 280.4 kB / 1.275 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.097e-05/0.3043, allocations: 55.52 kB / 1.275 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.262e-05/0.3044, allocations: 65.94 kB / 1.275 GB, free: 5.988 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3045, allocations: 358.8 kB / 1.276 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001756/0.3047, allocations: 81.94 kB / 1.276 GB, free: 5.547 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002806/0.305, allocations: 206.8 kB / 1.276 GB, free: 5.297 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003842/0.3054, allocations: 238.9 kB / 1.276 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.3054, allocations: 4 kB / 1.276 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005442/0.3059, allocations: 316.9 kB / 1.277 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.306, allocations: 11.94 kB / 1.277 GB, free: 4.699 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.306, allocations: 4.25 kB / 1.277 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.306, allocations: 8 kB / 1.277 GB, free: 4.688 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.3062, allocations: 59.91 kB / 1.277 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.3062, allocations: 4 kB / 1.277 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002709/0.3065, allocations: 47.75 kB / 1.277 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.621e-05/0.3065, allocations: 8 kB / 1.277 GB, free: 4.57 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002863/0.3068, allocations: 216.6 kB / 1.277 GB, free: 4.355 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002723/0.3071, allocations: 212.4 kB / 1.277 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003701/0.3075, allocations: 235.5 kB / 1.277 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.443e-06/0.3075, allocations: 0 / 1.277 GB, free: 3.84 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005264/0.308, allocations: 314.8 kB / 1.278 GB, free: 3.527 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.227e-06/0.308, allocations: 9.656 kB / 1.278 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.3081, allocations: 4 kB / 1.278 GB, free: 3.516 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.158e-06/0.3081, allocations: 8.25 kB / 1.278 GB, free: 3.508 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.3083, allocations: 59.91 kB / 1.278 GB, free: 3.449 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.3083, allocations: 7.984 kB / 1.278 GB, free: 3.441 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002853/0.3086, allocations: 31.88 kB / 1.278 GB, free: 3.41 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.428e-05/0.3086, allocations: 12.19 kB / 1.278 GB, free: 3.398 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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.000113/0.3087, allocations: 212 kB / 1.278 GB, free: 3.184 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.785e-05/0.3088, allocations: 59.55 kB / 1.278 GB, free: 3.125 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005033/0.3093, allocations: 261.5 kB / 1.278 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.3093, allocations: 4 kB / 1.278 GB, free: 2.855 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.3093, allocations: 0 / 1.278 GB, free: 2.855 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.3093, allocations: 0 / 1.278 GB, free: 2.855 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009308/0.3103, allocations: 0.7356 MB / 1.279 GB, free: 2.051 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.3103, allocations: 4 kB / 1.279 GB, free: 2.047 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.3104, allocations: 31.92 kB / 1.279 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3104, allocations: 0 / 1.279 GB, free: 2.016 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.3104, allocations: 4 kB / 1.279 GB, free: 2.012 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3104, allocations: 3.984 kB / 1.279 GB, free: 2.008 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3105, allocations: 4 kB / 1.279 GB, free: 2.004 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004494/0.3109, allocations: 360.5 kB / 1.279 GB, free: 1.625 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.3111, allocations: 148.7 kB / 1.279 GB, free: 1.461 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.945e-05/0.3111, allocations: 8 kB / 1.28 GB, free: 1.453 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.3113, allocations: 15.92 kB / 1.28 GB, free: 1.438 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.476e-05/0.3113, allocations: 15.92 kB / 1.28 GB, free: 1.422 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.3114, allocations: 8 kB / 1.28 GB, free: 1.414 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004245/0.3118, allocations: 418.8 kB / 1.28 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3118, allocations: 0 / 1.28 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005932/0.3124, allocations: 223.6 kB / 1.28 GB, free: 0.7891 MB / 0.9981 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 (17): * Single equations (assignments): 15 * 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.002035/0.3144, allocations: 1.267 MB / 1.281 GB, free: 15.62 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0006398/0.3151, allocations: 321.4 kB / 1.282 GB, free: 15.31 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3151, allocations: 3.938 kB / 1.282 GB, free: 15.31 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0001794/0.3153, allocations: 88.83 kB / 1.282 GB, free: 15.22 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.3164, allocations: 274.7 kB / 1.282 GB, free: 14.96 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004515/0.3209, allocations: 3.929 MB / 1.286 GB, free: 10.86 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.3213, allocations: 0.8428 MB / 1.287 GB, free: 9.988 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0002611/0.3216, allocations: 104.2 kB / 1.287 GB, free: 9.887 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001951/0.3218, allocations: 159.4 kB / 1.287 GB, free: 9.73 MB / 1.014 GB Notification: Performance of SimCode: time 2.063e-06/0.3218, allocations: 0 / 1.287 GB, free: 9.73 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 5.61/5.932, allocations: 15.02 MB / 1.302 GB, free: 10.95 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.35/27.28, allocations: 6.938 kB / 1.302 GB, free: 10.94 MB / 1.029 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches