Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_11_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_11_Buildings_Utilities_IO_Files_Examples_Printer",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.004396/0.004396, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001248/0.001248, allocations: 196.8 kB / 16.68 MB, free: 6.352 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.585/2.585, allocations: 469.8 MB / 0.7425 GB, free: 7.309 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001764/0.001764, allocations: 71.81 kB / 1.065 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2742, allocations: 159.1 MB / 1.22 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002651/0.2768, allocations: 1.584 MB / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00121/0.2781, allocations: 0.6974 MB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.388e-05/0.2781, allocations: 0 / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 9.871e-05/0.2782, allocations: 15.81 kB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.496e-05/0.2783, allocations: 23.78 kB / 1.222 GB, free: 11.95 MB / 0.9825 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/Utilities/IO/Files/BaseClasses/printRealArray.mo:2:1-45:19:writable] Warning: Pure function 'Buildings.Utilities.IO.Files.BaseClasses.printRealArray' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.000416/0.2787, allocations: 103.7 kB / 1.223 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001817/0.2789, allocations: 139.6 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.279, allocations: 29.12 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 8.346e-05/0.2791, allocations: 59.75 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.378e-05/0.2792, allocations: 59.7 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.58e-05/0.2792, allocations: 12 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000116/0.2794, allocations: 59.95 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.585e-05/0.2794, allocations: 27.91 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.259e-05/0.2795, allocations: 59.66 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002364/0.2798, allocations: 163.4 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2798, allocations: 4 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.256e-06/0.2798, allocations: 0 / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.2798, allocations: 3.938 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000811/0.2806, allocations: 0.5581 MB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.2806, allocations: 12.03 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.304e-05/0.2807, allocations: 38.73 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.504e-05/0.2807, allocations: 16.84 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00021/0.281, allocations: 217.1 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.281, allocations: 8.375 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.588e-05/0.281, allocations: 8.375 kB / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003043/0.2813, allocations: 150.6 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.2813, allocations: 0 / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.2813, allocations: 8 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.2814, allocations: 7.984 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002343/0.2816, allocations: 63.94 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006123/0.2822, allocations: 472.7 kB / 1.225 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002077/0.2824, allocations: 77.19 kB / 1.225 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.2826, allocations: 53.75 kB / 1.225 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.2826, allocations: 4 kB / 1.225 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00031/0.2829, allocations: 137 kB / 1.225 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.372e-06/0.2829, allocations: 4 kB / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0005397/0.2835, allocations: 189.4 kB / 1.225 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.2836, allocations: 81.11 kB / 1.225 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.2837, allocations: 170.3 kB / 1.225 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.2837, allocations: 29.7 kB / 1.225 GB, free: 8.715 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.556e-05/0.2838, allocations: 116.4 kB / 1.225 GB, free: 8.594 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.542e-05/0.2839, allocations: 31.73 kB / 1.225 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.388e-05/0.2839, allocations: 37.7 kB / 1.226 GB, free: 8.52 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.2841, allocations: 322.8 kB / 1.226 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.2842, allocations: 39.95 kB / 1.226 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.2844, allocations: 133.2 kB / 1.226 GB, free: 7.992 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003179/0.2847, allocations: 139.6 kB / 1.226 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2847, allocations: 0 / 1.226 GB, free: 7.828 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003629/0.2851, allocations: 169.3 kB / 1.226 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.2851, allocations: 7.984 kB / 1.226 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.2851, allocations: 4 kB / 1.226 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.2852, allocations: 4.375 kB / 1.226 GB, free: 7.641 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.814e-05/0.2853, allocations: 16.27 kB / 1.226 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.2853, allocations: 7.938 kB / 1.226 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001238/0.2854, allocations: 19.92 kB / 1.226 GB, free: 7.598 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.2854, allocations: 7.938 kB / 1.226 GB, free: 7.59 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 13 (pri2.firstTrigger,$PRE.pri2.firstTrigger,pri1.firstTrigger,$PRE.pri1.firstTrigger,$whenCondition4,pri1.sampleTrigger,$whenCondition2,pri2.sampleTrigger,$whenCondition3,pri3.firstTrigger,$PRE.pri3.firstTrigger,pri3.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001115/0.2856, allocations: 130.4 kB / 1.226 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.817e-05/0.2856, allocations: 19.89 kB / 1.226 GB, free: 7.434 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.735e-05/0.2856, allocations: 17.41 kB / 1.226 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2856, allocations: 4 kB / 1.226 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2857, allocations: 4 kB / 1.227 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.2857, allocations: 3.938 kB / 1.227 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007099/0.2864, allocations: 0.5249 MB / 1.227 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2864, allocations: 0 / 1.227 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.182e-05/0.2865, allocations: 15.98 kB / 1.227 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.2865, allocations: 7.938 kB / 1.227 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.2865, allocations: 7.984 kB / 1.227 GB, free: 6.781 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2865, allocations: 3.938 kB / 1.227 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2865, allocations: 4 kB / 1.227 GB, free: 6.773 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004258/0.2869, allocations: 314.9 kB / 1.227 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.2e-05/0.287, allocations: 92.95 kB / 1.227 GB, free: 6.34 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.269e-05/0.2871, allocations: 11.98 kB / 1.227 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.2872, allocations: 23.97 kB / 1.227 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.2873, allocations: 7.984 kB / 1.227 GB, free: 6.297 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.941e-05/0.2873, allocations: 8 kB / 1.227 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.93e-05/0.2874, allocations: 120.2 kB / 1.228 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2874, allocations: 0 / 1.228 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003503/0.2878, allocations: 39.92 kB / 1.228 GB, free: 6.133 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (pri3.sampleTrigger,$whenCondition1,pri3.firstTrigger,pri2.sampleTrigger,pri1.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,pri1.firstTrigger,pri2.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001068/0.2889, allocations: 0.9603 MB / 1.229 GB, free: 5.188 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003367/0.2892, allocations: 115.7 kB / 1.229 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2892, allocations: 0 / 1.229 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001542/0.2894, allocations: 51.91 kB / 1.229 GB, free: 5.023 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003661/0.2897, allocations: 20.55 kB / 1.229 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.292, allocations: 1.893 MB / 1.231 GB, free: 2.977 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003592/0.2923, allocations: 0.7119 MB / 1.231 GB, free: 2.238 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.05e-05/0.2924, allocations: 24.53 kB / 1.231 GB, free: 2.215 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.227e-05/0.2925, allocations: 35.42 kB / 1.231 GB, free: 2.18 MB / 0.9825 GB Notification: Performance of SimCode: time 3.01e-07/0.2925, allocations: 4 kB / 1.231 GB, free: 2.176 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.847/2.14, allocations: 3.454 MB / 1.235 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/14.82, allocations: 5.25 kB / 1.235 GB, free: 14.81 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches