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.001617/0.001622, allocations: 108 kB / 15.61 MB, free: 152 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.001727/0.001727, allocations: 195.4 kB / 16.53 MB, free: 6.664 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.31/1.31, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.761/2.761, allocations: 469.8 MB / 0.7424 GB, free: 7.402 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 68.3 kB / 0.9087 GB, free: 34.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2576, allocations: 159.1 MB / 1.064 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002625/0.2602, allocations: 1.59 MB / 1.066 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001134/0.2614, allocations: 0.6992 MB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.356e-05/0.2614, allocations: 3.938 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.319e-05/0.2615, allocations: 11.86 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.306e-05/0.2616, allocations: 19.8 kB / 1.066 GB, free: 11.84 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.0003755/0.262, allocations: 111.7 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001646/0.2621, allocations: 127.6 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.2623, allocations: 33.11 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.358e-05/0.2624, allocations: 55.77 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.042e-05/0.2625, allocations: 71.67 kB / 1.067 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.2625, allocations: 12 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001152/0.2626, allocations: 51.91 kB / 1.067 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.311e-05/0.2627, allocations: 35.91 kB / 1.067 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.587e-05/0.2628, allocations: 59.66 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002227/0.263, allocations: 167.7 kB / 1.067 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.263, allocations: 0 / 1.067 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.072e-06/0.263, allocations: 0 / 1.067 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.037e-06/0.263, allocations: 0 / 1.067 GB, free: 11.13 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.0008143/0.2638, allocations: 0.5468 MB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.2639, allocations: 8.031 kB / 1.068 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.46e-05/0.2639, allocations: 42.73 kB / 1.068 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.583e-05/0.264, allocations: 16.75 kB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/0.2642, allocations: 216.7 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.2642, allocations: 4.375 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/0.2642, allocations: 16.38 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002942/0.2645, allocations: 136.2 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.2646, allocations: 0 / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.237e-05/0.2646, allocations: 0 / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.2646, allocations: 0 / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002468/0.2648, allocations: 71.88 kB / 1.068 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006792/0.2655, allocations: 472.6 kB / 1.069 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.2657, allocations: 85.17 kB / 1.069 GB, free: 9.34 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/0.2659, allocations: 49.81 kB / 1.069 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.2659, allocations: 0 / 1.069 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002989/0.2662, allocations: 141 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.163e-06/0.2662, allocations: 4 kB / 1.069 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.000569/0.2668, allocations: 197.4 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.157e-05/0.2669, allocations: 81.11 kB / 1.069 GB, free: 8.828 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.267, allocations: 163.3 kB / 1.069 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.267, allocations: 37.69 kB / 1.069 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.056e-05/0.2671, allocations: 108.4 kB / 1.069 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.907e-05/0.2672, allocations: 35.55 kB / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.602e-05/0.2672, allocations: 33.7 kB / 1.069 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.2674, allocations: 326.8 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.2675, allocations: 32.34 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/0.2677, allocations: 114.3 kB / 1.07 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003074/0.268, allocations: 151.5 kB / 1.07 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.268, allocations: 0 / 1.07 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000374/0.2684, allocations: 165.3 kB / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.2684, allocations: 4 kB / 1.07 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.2684, allocations: 4 kB / 1.07 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.2685, allocations: 0 / 1.07 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.2686, allocations: 32.19 kB / 1.07 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.2686, allocations: 4 kB / 1.07 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.66e-05/0.2687, allocations: 19.83 kB / 1.07 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.2687, allocations: 8.109 kB / 1.07 GB, free: 7.508 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.0001156/0.2688, allocations: 138.2 kB / 1.07 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.691e-05/0.2689, allocations: 11.91 kB / 1.07 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.126e-05/0.2689, allocations: 21.39 kB / 1.07 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2689, allocations: 4 kB / 1.07 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.2689, allocations: 4 kB / 1.07 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.2689, allocations: 3.938 kB / 1.07 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007125/0.2696, allocations: 0.5326 MB / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2697, allocations: 0 / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.079e-05/0.2697, allocations: 11.98 kB / 1.071 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.2698, allocations: 11.94 kB / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.2698, allocations: 0 / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2698, allocations: 0 / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.2698, allocations: 4 kB / 1.071 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004439/0.2702, allocations: 318.5 kB / 1.071 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.769e-05/0.2703, allocations: 92.95 kB / 1.071 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.647e-05/0.2703, allocations: 12 kB / 1.071 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.2705, allocations: 15.97 kB / 1.071 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/0.2706, allocations: 15.92 kB / 1.071 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.762e-05/0.2706, allocations: 8 kB / 1.071 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.176e-05/0.2707, allocations: 115.2 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2707, allocations: 4 kB / 1.072 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003481/0.2711, allocations: 43.89 kB / 1.072 GB, free: 6.055 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.001071/0.2721, allocations: 0.9537 MB / 1.072 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003813/0.2725, allocations: 119.7 kB / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.2725, allocations: 0 / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.2727, allocations: 55.91 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.2731, allocations: 24.55 kB / 1.073 GB, free: 4.922 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00217/0.2752, allocations: 1.878 MB / 1.075 GB, free: 2.906 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.2756, allocations: 0.7158 MB / 1.075 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.687e-05/0.2756, allocations: 24.53 kB / 1.075 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.026e-05/0.2757, allocations: 39.42 kB / 1.075 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.2757, allocations: 0 / 1.075 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.533/1.809, allocations: 3.394 MB / 1.079 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.05/15.86, allocations: 11.92 kB / 1.079 GB, free: 14.77 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 & /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