Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Utilities.IO.Python_3_8.Functions.Examples.Exchange,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange",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.001331/0.001331, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001369/0.001369, allocations: 192.2 kB / 16.14 MB, free: 6.645 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.36/1.36, allocations: 222.9 MB / 239.8 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.621/2.621, allocations: 461.9 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 63.8 kB / 0.8985 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2807, allocations: 157.4 MB / 1.052 GB, free: 8.188 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.001786/0.2826, allocations: 0.6027 MB / 1.053 GB, free: 7.582 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001571/0.2842, allocations: 1.21 MB / 1.054 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.958e-05/0.2842, allocations: 0 / 1.054 GB, free: 6.363 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.525e-05/0.2843, allocations: 8 kB / 1.054 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.537e-05/0.2843, allocations: 0 / 1.054 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000515/0.2849, allocations: 243.5 kB / 1.054 GB, free: 6.117 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.444e-05/0.285, allocations: 75.8 kB / 1.054 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.714e-05/0.285, allocations: 4 kB / 1.054 GB, free: 6.039 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.774e-05/0.2851, allocations: 47.83 kB / 1.054 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.924e-05/0.2851, allocations: 31.92 kB / 1.054 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.398e-05/0.2851, allocations: 8 kB / 1.054 GB, free: 5.953 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003511/0.2855, allocations: 187.7 kB / 1.055 GB, free: 5.77 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.255e-05/0.2855, allocations: 7.984 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.143e-05/0.2856, allocations: 43.73 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003045/0.2859, allocations: 255.5 kB / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2859, allocations: 0 / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.12e-07/0.2859, allocations: 0 / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.175e-06/0.2859, allocations: 0 / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003894/0.2863, allocations: 441.3 kB / 1.055 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.2864, allocations: 15.97 kB / 1.055 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.375e-05/0.2864, allocations: 114 kB / 1.055 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.466e-05/0.2865, allocations: 84.22 kB / 1.055 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001446/0.2867, allocations: 263.5 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.07e-05/0.2867, allocations: 154.9 kB / 1.056 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.596e-05/0.2868, allocations: 154.9 kB / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.718e-05/0.2869, allocations: 108.9 kB / 1.056 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.2869, allocations: 79.28 kB / 1.056 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.667e-05/0.2869, allocations: 150.6 kB / 1.056 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-05/0.287, allocations: 150.6 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.652e-05/0.287, allocations: 154.5 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002935/0.2873, allocations: 473.9 kB / 1.057 GB, free: 3.012 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 7e-05/0.2874, allocations: 165.1 kB / 1.057 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.953e-05/0.2874, allocations: 88.08 kB / 1.057 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.2875, allocations: 83.22 kB / 1.057 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.071e-05/0.2875, allocations: 109.8 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 9.01e-07/0.2875, allocations: 4 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 9.02e-05/0.2876, allocations: 33.7 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.2877, allocations: 126.7 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.2878, allocations: 147.5 kB / 1.058 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.2879, allocations: 29.7 kB / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.346e-05/0.2879, allocations: 92.05 kB / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.264e-06/0.288, allocations: 0 / 1.058 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.338e-05/0.288, allocations: 41.69 kB / 1.058 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.2882, allocations: 326.8 kB / 1.058 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.2883, allocations: 55.95 kB / 1.058 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001034/0.2884, allocations: 59.94 kB / 1.058 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.2886, allocations: 102.5 kB / 1.059 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2886, allocations: 0 / 1.059 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004158/0.289, allocations: 227.2 kB / 1.059 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 5.061e-05/0.2891, allocations: 45.69 kB / 1.059 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2891, allocations: 0 / 1.059 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.2891, allocations: 0 / 1.059 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-06/0.2891, allocations: 64 / 1.059 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.2891, allocations: 4 kB / 1.059 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003271/0.2894, allocations: 27.88 kB / 1.059 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.102e-05/0.2895, allocations: 15.92 kB / 1.059 GB, free: 1.16 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI2[2],yI2[1],yI1[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001433/0.2896, allocations: 201.1 kB / 1.059 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.397e-05/0.2897, allocations: 112.8 kB / 1.059 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.765e-05/0.2898, allocations: 112.5 kB / 1.059 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.389e-05/0.2899, allocations: 188.2 kB / 1.059 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-05/0.2899, allocations: 184.2 kB / 1.06 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.972e-05/0.29, allocations: 180.3 kB / 1.06 GB, free: 160 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002541/0.2903, allocations: 421.2 kB / 1.06 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.42e-05/0.2903, allocations: 104.9 kB / 1.06 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.389e-05/0.2904, allocations: 105 kB / 1.06 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.45e-05/0.2904, allocations: 180.2 kB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.426e-05/0.2905, allocations: 180.3 kB / 1.061 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.576e-05/0.2906, allocations: 184.2 kB / 1.061 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.398e-05/0.2906, allocations: 180.2 kB / 1.061 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001626/0.2908, allocations: 307.7 kB / 1.061 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.03e-05/0.2909, allocations: 190 kB / 1.062 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.961e-05/0.291, allocations: 184.2 kB / 1.062 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.985e-05/0.2911, allocations: 105 kB / 1.062 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.089e-05/0.2912, allocations: 184.2 kB / 1.062 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.253e-05/0.2912, allocations: 109 kB / 1.062 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.77e-05/0.2913, allocations: 110.3 kB / 1.062 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2913, allocations: 0 / 1.062 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000411/0.2917, allocations: 67.98 kB / 1.062 GB, free: 13.43 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.001024/0.2928, allocations: 1.034 MB / 1.063 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003069/0.2931, allocations: 219.3 kB / 1.063 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.2931, allocations: 0 / 1.063 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.744e-06/0.2931, allocations: 0 / 1.063 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/0.2935, allocations: 0.5224 MB / 1.064 GB, free: 11.68 MB / 0.8262 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/legal.html") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.2954, allocations: 1.875 MB / 1.066 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002427/0.2956, allocations: 0.677 MB / 1.066 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.769e-05/0.2957, allocations: 55.8 kB / 1.067 GB, free: 8.961 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.734e-05/0.2957, allocations: 11.44 kB / 1.067 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2957, allocations: 0 / 1.067 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7931/1.089, allocations: 3.542 MB / 1.07 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000259/1.089, allocations: 302.6 kB / 1.07 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/2.891, allocations: 0 / 1.07 GB, free: 5.16 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.fmu > Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches