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.001297/0.001297, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.4/1.4, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.845/2.845, allocations: 469.8 MB / 0.7424 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 65.98 kB / 0.9087 GB, free: 34.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2583, allocations: 159.2 MB / 1.064 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003546/0.2618, allocations: 1.59 MB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001284/0.2632, allocations: 0.6992 MB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.434e-05/0.2632, allocations: 4 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.311e-05/0.2633, allocations: 15.8 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.219e-05/0.2634, allocations: 15.81 kB / 1.066 GB, free: 11.88 MB / 0.8262 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.0004072/0.2638, allocations: 111.7 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001858/0.264, allocations: 135.5 kB / 1.067 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.2642, allocations: 33.09 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.441e-05/0.2642, allocations: 47.84 kB / 1.067 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.46e-05/0.2643, allocations: 75.67 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.2644, allocations: 8 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.2645, allocations: 55.91 kB / 1.067 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.766e-05/0.2646, allocations: 31.91 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.913e-05/0.2647, allocations: 59.66 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002466/0.2649, allocations: 167.7 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.2649, allocations: 0 / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.265, allocations: 0 / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.017e-06/0.265, allocations: 0 / 1.067 GB, free: 11.17 MB / 0.8262 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.0008837/0.2659, allocations: 0.5468 MB / 1.068 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.2659, allocations: 8.031 kB / 1.068 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.807e-05/0.2659, allocations: 42.73 kB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.996e-05/0.266, allocations: 20.75 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000223/0.2662, allocations: 220.7 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.2663, allocations: 8.375 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.2663, allocations: 8.375 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003214/0.2666, allocations: 132.3 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.2666, allocations: 0 / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.2666, allocations: 4 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.858e-06/0.2667, allocations: 0 / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002631/0.2669, allocations: 75.88 kB / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006553/0.2676, allocations: 460.7 kB / 1.069 GB, free: 9.484 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002235/0.2678, allocations: 93.22 kB / 1.069 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.268, allocations: 49.75 kB / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.268, allocations: 0 / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003502/0.2684, allocations: 148.9 kB / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.313e-06/0.2684, allocations: 0 / 1.069 GB, free: 9.156 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0006211/0.269, allocations: 185.3 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.511e-05/0.2691, allocations: 89.11 kB / 1.069 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.2692, allocations: 163.3 kB / 1.069 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.123e-05/0.2693, allocations: 30.08 kB / 1.069 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.514e-05/0.2693, allocations: 112.3 kB / 1.069 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.12e-05/0.2694, allocations: 35.53 kB / 1.069 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-05/0.2695, allocations: 37.7 kB / 1.069 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2696, allocations: 326.8 kB / 1.07 GB, free: 8.137 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001436/0.2698, allocations: 39.97 kB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.27, allocations: 110.3 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003299/0.2703, allocations: 151.5 kB / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.2703, allocations: 4 kB / 1.07 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000395/0.2707, allocations: 157.6 kB / 1.07 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.2707, allocations: 8 kB / 1.07 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.2708, allocations: 4 kB / 1.07 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.2708, allocations: 0 / 1.07 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.2709, allocations: 23.92 kB / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.2709, allocations: 7.984 kB / 1.07 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.271, allocations: 15.84 kB / 1.07 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.271, allocations: 4 kB / 1.07 GB, free: 7.551 MB / 0.8262 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.0001263/0.2712, allocations: 146.3 kB / 1.07 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.038e-05/0.2712, allocations: 11.91 kB / 1.07 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.601e-05/0.2713, allocations: 21.33 kB / 1.07 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2713, allocations: 0 / 1.07 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.2713, allocations: 4 kB / 1.07 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.2713, allocations: 4.172 kB / 1.07 GB, free: 7.359 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007624/0.272, allocations: 0.5443 MB / 1.071 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.2721, allocations: 0 / 1.071 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.831e-05/0.2721, allocations: 11.98 kB / 1.071 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.2722, allocations: 3.938 kB / 1.071 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.2722, allocations: 8 kB / 1.071 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2722, allocations: 0 / 1.071 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2722, allocations: 0 / 1.071 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004511/0.2726, allocations: 326.5 kB / 1.071 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.472e-05/0.2727, allocations: 88.95 kB / 1.071 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.2727, allocations: 0 / 1.071 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.273, allocations: 23.97 kB / 1.071 GB, free: 6.27 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.439e-05/0.273, allocations: 4 kB / 1.071 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.631e-05/0.2731, allocations: 19.98 kB / 1.071 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.356e-05/0.2732, allocations: 119.2 kB / 1.072 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2732, allocations: 0 / 1.072 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003474/0.2735, allocations: 40 kB / 1.072 GB, free: 6.09 MB / 0.8262 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.00114/0.2747, allocations: 0.9537 MB / 1.072 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003835/0.2751, allocations: 115.8 kB / 1.073 GB, free: 5.039 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2751, allocations: 4.5 kB / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001735/0.2752, allocations: 55.91 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.2756, allocations: 22.02 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.2779, allocations: 1.885 MB / 1.075 GB, free: 2.938 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.2783, allocations: 0.7158 MB / 1.075 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.821e-05/0.2784, allocations: 20.53 kB / 1.075 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.608e-05/0.2784, allocations: 39.42 kB / 1.075 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.2785, allocations: 0 / 1.075 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02661/0.3051, allocations: 3.387 MB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.781/8.086, allocations: 10.95 kB / 1.079 GB, free: 14.81 MB / 0.8419 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 & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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