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.006541/0.006541, allocations: 97.95 kB / 15.73 MB, free: 6.062 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.001669/0.001669, allocations: 193 kB / 16.68 MB, free: 5.969 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.75/2.75, allocations: 469.8 MB / 0.7425 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 63.89 kB / 1.065 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7411/0.743, allocations: 159.1 MB / 1.22 GB, free: 2.039 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002726/0.7457, allocations: 1.592 MB / 1.222 GB, free: 448 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00129/0.7471, allocations: 0.6945 MB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.141e-05/0.7471, allocations: 3.938 kB / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001069/0.7472, allocations: 15.8 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.217e-05/0.7473, allocations: 15.81 kB / 1.222 GB, free: 15.7 MB / 0.9512 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.0004358/0.7478, allocations: 111.7 kB / 1.223 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000204/0.748, allocations: 135.5 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.7481, allocations: 33.09 kB / 1.223 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.792e-05/0.7482, allocations: 51.84 kB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.7483, allocations: 67.69 kB / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.7484, allocations: 8 kB / 1.223 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.7485, allocations: 55.95 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.675e-05/0.7485, allocations: 31.91 kB / 1.223 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 7.85e-05/0.7486, allocations: 55.67 kB / 1.223 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002631/0.7489, allocations: 171 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.7489, allocations: 0 / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.462e-06/0.7489, allocations: 0 / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.7489, allocations: 3.938 kB / 1.223 GB, free: 15 MB / 0.9512 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.0008979/0.7498, allocations: 0.5544 MB / 1.224 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.7499, allocations: 8.031 kB / 1.224 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.069e-05/0.7499, allocations: 38.75 kB / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.938e-05/0.75, allocations: 16.84 kB / 1.224 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002161/0.7502, allocations: 228.5 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.7502, allocations: 8.375 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.422e-05/0.7503, allocations: 12.38 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003164/0.7506, allocations: 127.5 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.7506, allocations: 0 / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.7506, allocations: 3.938 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.7506, allocations: 0 / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002792/0.7509, allocations: 75.88 kB / 1.224 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006392/0.7516, allocations: 460.8 kB / 1.225 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002229/0.7518, allocations: 89.12 kB / 1.225 GB, free: 13.2 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.7519, allocations: 45.81 kB / 1.225 GB, free: 13.15 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.752, allocations: 3.984 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003102/0.7523, allocations: 145 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=12): time 1.393e-06/0.7523, allocations: 0 / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12): time 0.0005892/0.7529, allocations: 185.4 kB / 1.225 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.753, allocations: 85.09 kB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.7531, allocations: 170.2 kB / 1.225 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.969e-05/0.7532, allocations: 33.7 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.598e-05/0.7532, allocations: 112.3 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.731e-05/0.7533, allocations: 31.73 kB / 1.225 GB, free: 12.33 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-05/0.7534, allocations: 33.72 kB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.7535, allocations: 330.8 kB / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001372/0.7537, allocations: 31.97 kB / 1.226 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.7539, allocations: 117.8 kB / 1.226 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003269/0.7542, allocations: 159.5 kB / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.7542, allocations: 4 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003944/0.7546, allocations: 165.3 kB / 1.226 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.7546, allocations: 8.281 kB / 1.226 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.7547, allocations: 4.375 kB / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.7547, allocations: 0 / 1.226 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.7548, allocations: 19.92 kB / 1.226 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.7548, allocations: 4 kB / 1.226 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001095/0.7549, allocations: 20.09 kB / 1.226 GB, free: 11.37 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.7549, allocations: 8 kB / 1.226 GB, free: 11.36 MB / 0.9512 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.0001283/0.7551, allocations: 142.3 kB / 1.226 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.909e-05/0.7551, allocations: 19.91 kB / 1.226 GB, free: 11.2 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.841e-05/0.7552, allocations: 17.41 kB / 1.226 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.7552, allocations: 4 kB / 1.226 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.7552, allocations: 3.984 kB / 1.226 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.7552, allocations: 3.938 kB / 1.226 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007479/0.756, allocations: 0.5249 MB / 1.227 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.756, allocations: 7.984 kB / 1.227 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.57e-05/0.7561, allocations: 11.98 kB / 1.227 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.705e-06/0.7561, allocations: 7.938 kB / 1.227 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.7561, allocations: 0 / 1.227 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.7561, allocations: 0 / 1.227 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.7561, allocations: 0 / 1.227 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004572/0.7566, allocations: 330.5 kB / 1.227 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.242e-05/0.7566, allocations: 92.95 kB / 1.227 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.432e-05/0.7567, allocations: 7.984 kB / 1.227 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001863/0.7569, allocations: 15.98 kB / 1.227 GB, free: 10.07 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.336e-05/0.7569, allocations: 11.98 kB / 1.227 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.245e-05/0.757, allocations: 8 kB / 1.227 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001037/0.7571, allocations: 124.2 kB / 1.228 GB, free: 9.93 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7571, allocations: 4 kB / 1.228 GB, free: 9.926 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003478/0.7574, allocations: 39.94 kB / 1.228 GB, free: 9.887 MB / 0.9512 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.001162/0.7586, allocations: 0.9674 MB / 1.229 GB, free: 8.934 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003693/0.759, allocations: 107.8 kB / 1.229 GB, free: 8.828 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.759, allocations: 0 / 1.229 GB, free: 8.828 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001687/0.7592, allocations: 56.45 kB / 1.229 GB, free: 8.773 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003514/0.7595, allocations: 19.98 kB / 1.229 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002367/0.7619, allocations: 1.894 MB / 1.231 GB, free: 6.73 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000349/0.7623, allocations: 0.7119 MB / 1.231 GB, free: 5.992 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 7.153e-05/0.7623, allocations: 24.56 kB / 1.231 GB, free: 5.969 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.188e-05/0.7624, allocations: 39.42 kB / 1.231 GB, free: 5.93 MB / 0.9512 GB Notification: Performance of SimCode: time 2.4e-07/0.7624, allocations: 0 / 1.231 GB, free: 5.93 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0249/0.7873, allocations: 3.435 MB / 1.235 GB, free: 2.582 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.259/9.047, allocations: 10.42 kB / 1.235 GB, free: 2.574 MB / 0.9512 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 50 --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