Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_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.006593/0.006593, allocations: 98.47 kB / 15.73 MB, free: 5.949 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.0018/0.0018, allocations: 193.1 kB / 16.67 MB, free: 5.871 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.467/2.467, allocations: 482.6 MB / 0.7551 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001736/0.001736, allocations: 68.62 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2715, allocations: 162.3 MB / 1.242 GB, free: 8.949 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002548/0.2741, allocations: 1.587 MB / 1.243 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001106/0.2752, allocations: 0.6911 MB / 1.244 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.292e-05/0.2753, allocations: 4 kB / 1.244 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 9.095e-05/0.2754, allocations: 19.8 kB / 1.244 GB, free: 6.629 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.464e-05/0.2754, allocations: 11.81 kB / 1.244 GB, free: 6.617 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.0003692/0.2758, allocations: 115.7 kB / 1.244 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001798/0.276, allocations: 135.6 kB / 1.244 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.2761, allocations: 37.09 kB / 1.244 GB, free: 6.336 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.214e-05/0.2762, allocations: 59.72 kB / 1.244 GB, free: 6.277 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.218e-05/0.2763, allocations: 63.73 kB / 1.244 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.2763, allocations: 12 kB / 1.244 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.2765, allocations: 47.97 kB / 1.245 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.817e-05/0.2765, allocations: 27.91 kB / 1.245 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.02e-05/0.2766, allocations: 63.64 kB / 1.245 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.2768, allocations: 171.6 kB / 1.245 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.2768, allocations: 0 / 1.245 GB, free: 5.898 MB / 0.9669 GB Notification: Performance of FrontEnd: time 9.82e-07/0.2769, allocations: 7.938 kB / 1.245 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.2769, allocations: 4 kB / 1.245 GB, free: 5.887 MB / 0.9669 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.0008269/0.2777, allocations: 0.5388 MB / 1.245 GB, free: 5.281 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.02e-05/0.2777, allocations: 15.97 kB / 1.245 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.414e-05/0.2778, allocations: 38.75 kB / 1.245 GB, free: 5.219 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.693e-05/0.2778, allocations: 24.83 kB / 1.245 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002116/0.278, allocations: 224.1 kB / 1.246 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.2781, allocations: 8.375 kB / 1.246 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.894e-05/0.2781, allocations: 4.375 kB / 1.246 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002985/0.2784, allocations: 135.4 kB / 1.246 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.2784, allocations: 0 / 1.246 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.2784, allocations: 11.98 kB / 1.246 GB, free: 4.77 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.2784, allocations: 4 kB / 1.246 GB, free: 4.766 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002334/0.2787, allocations: 63.94 kB / 1.246 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006205/0.2793, allocations: 464.8 kB / 1.246 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001962/0.2795, allocations: 77.17 kB / 1.246 GB, free: 4.102 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001329/0.2797, allocations: 49.75 kB / 1.246 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.2797, allocations: 4 kB / 1.246 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003009/0.28, allocations: 145.1 kB / 1.247 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.28, allocations: 0 / 1.247 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0005579/0.2806, allocations: 201.5 kB / 1.247 GB, free: 3.68 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.2806, allocations: 81.09 kB / 1.247 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.2808, allocations: 166.3 kB / 1.247 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.2808, allocations: 29.7 kB / 1.247 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.882e-05/0.2809, allocations: 112.4 kB / 1.247 GB, free: 3.258 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.172e-05/0.2809, allocations: 27.78 kB / 1.247 GB, free: 3.23 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.196e-05/0.281, allocations: 37.7 kB / 1.247 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.2811, allocations: 326.8 kB / 1.247 GB, free: 2.859 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000124/0.2813, allocations: 35.97 kB / 1.248 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.2814, allocations: 120.2 kB / 1.248 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002895/0.2817, allocations: 143.6 kB / 1.248 GB, free: 2.504 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2818, allocations: 3.938 kB / 1.248 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003607/0.2821, allocations: 169.5 kB / 1.248 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.2821, allocations: 8.375 kB / 1.248 GB, free: 2.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.2822, allocations: 0 / 1.248 GB, free: 2.32 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.2822, allocations: 4 kB / 1.248 GB, free: 2.316 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.349e-05/0.2823, allocations: 15.98 kB / 1.248 GB, free: 2.301 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.2823, allocations: 3.938 kB / 1.248 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.601e-05/0.2824, allocations: 23.88 kB / 1.248 GB, free: 2.273 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.2824, allocations: 8.156 kB / 1.248 GB, free: 2.266 MB / 0.9669 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.0001096/0.2825, allocations: 146.2 kB / 1.248 GB, free: 2.113 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.243e-05/0.2825, allocations: 7.953 kB / 1.248 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.093e-05/0.2826, allocations: 25.39 kB / 1.248 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2826, allocations: 0 / 1.248 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2826, allocations: 0 / 1.248 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.2826, allocations: 7.875 kB / 1.248 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006943/0.2833, allocations: 0.5367 MB / 1.249 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2833, allocations: 0 / 1.249 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.005e-05/0.2834, allocations: 19.98 kB / 1.249 GB, free: 1.457 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.2834, allocations: 3.938 kB / 1.249 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.2834, allocations: 0 / 1.249 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.2834, allocations: 4 kB / 1.249 GB, free: 1.449 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.2835, allocations: 7.922 kB / 1.249 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004063/0.2839, allocations: 326.6 kB / 1.249 GB, free: 1.105 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.453e-05/0.2839, allocations: 92.95 kB / 1.249 GB, free: 0.9961 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.748e-05/0.2839, allocations: 0 / 1.249 GB, free: 0.9961 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/0.2841, allocations: 15.98 kB / 1.249 GB, free: 0.9805 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.145e-05/0.2842, allocations: 11.98 kB / 1.249 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.9e-05/0.2842, allocations: 11.98 kB / 1.249 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.451e-05/0.2843, allocations: 119.2 kB / 1.249 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2843, allocations: 0 / 1.249 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003235/0.2846, allocations: 35.94 kB / 1.249 GB, free: 0.8047 MB / 0.9669 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.001033/0.2857, allocations: 0.9625 MB / 1.25 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003317/0.286, allocations: 108.2 kB / 1.25 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.286, allocations: 4.125 kB / 1.25 GB, free: 15.75 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.2862, allocations: 59.88 kB / 1.25 GB, free: 15.69 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003488/0.2865, allocations: 16 kB / 1.25 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00212/0.2887, allocations: 1.904 MB / 1.252 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.289, allocations: 0.7119 MB / 1.253 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.017e-05/0.2891, allocations: 20.53 kB / 1.253 GB, free: 12.87 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.698e-05/0.2891, allocations: 35.44 kB / 1.253 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of SimCode: time 2.41e-07/0.2891, allocations: 4 kB / 1.253 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2785/0.5676, allocations: 3.434 MB / 1.256 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.327/8.895, allocations: 11.31 kB / 1.256 GB, free: 9.496 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches