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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.006272/0.006272, allocations: 109.6 kB / 15.74 MB, free: 5.984 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.00157/0.00157, allocations: 194.9 kB / 16.67 MB, free: 5.906 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.715/2.715, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 59.91 kB / 1.054 GB, free: 7.68 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.329, allocations: 157.4 MB / 1.207 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003199/0.3323, allocations: 1.585 MB / 1.209 GB, free: 8.574 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001433/0.3338, allocations: 0.694 MB / 1.209 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.586e-05/0.3339, allocations: 0 / 1.209 GB, free: 7.875 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001296/0.334, allocations: 15.8 kB / 1.209 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.577e-05/0.3342, allocations: 23.73 kB / 1.21 GB, free: 7.836 MB / 0.9669 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0005589/0.3347, allocations: 107.7 kB / 1.21 GB, free: 7.73 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002331/0.335, allocations: 135.6 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.3351, allocations: 41.03 kB / 1.21 GB, free: 7.559 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.3352, allocations: 47.84 kB / 1.21 GB, free: 7.512 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.3354, allocations: 71.67 kB / 1.21 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.051e-05/0.3354, allocations: 12 kB / 1.21 GB, free: 7.43 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001328/0.3355, allocations: 39.98 kB / 1.21 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.326e-05/0.3356, allocations: 39.89 kB / 1.21 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.255e-05/0.3357, allocations: 59.66 kB / 1.21 GB, free: 7.293 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000267/0.336, allocations: 175.6 kB / 1.21 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.336, allocations: 0 / 1.21 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.703e-06/0.336, allocations: 0 / 1.21 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.299e-05/0.336, allocations: 0 / 1.21 GB, free: 7.121 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.0008936/0.3369, allocations: 0.5506 MB / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.337, allocations: 12.62 kB / 1.211 GB, free: 6.492 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.195e-05/0.337, allocations: 34.75 kB / 1.211 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.983e-05/0.3371, allocations: 20.73 kB / 1.211 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002212/0.3373, allocations: 213.3 kB / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.3373, allocations: 4.375 kB / 1.211 GB, free: 6.18 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/0.3374, allocations: 16.31 kB / 1.211 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003265/0.3377, allocations: 133.5 kB / 1.211 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.3377, allocations: 0 / 1.211 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.872e-05/0.3377, allocations: 3.984 kB / 1.211 GB, free: 6.02 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.3377, allocations: 7.938 kB / 1.211 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002404/0.338, allocations: 63.94 kB / 1.211 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006497/0.3386, allocations: 468.6 kB / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/0.3389, allocations: 93.11 kB / 1.212 GB, free: 5.328 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.339, allocations: 49.81 kB / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.339, allocations: 0 / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003084/0.3393, allocations: 145 kB / 1.212 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.703e-06/0.3394, allocations: 0 / 1.212 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0005593/0.3399, allocations: 193.3 kB / 1.212 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.34, allocations: 81.11 kB / 1.212 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.3401, allocations: 162.8 kB / 1.212 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.3402, allocations: 33.7 kB / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.221e-05/0.3402, allocations: 108.3 kB / 1.212 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.937e-05/0.3403, allocations: 35.62 kB / 1.213 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.777e-05/0.3404, allocations: 37.7 kB / 1.213 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.3405, allocations: 326.8 kB / 1.213 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.3406, allocations: 35.91 kB / 1.213 GB, free: 4.055 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.3408, allocations: 118.3 kB / 1.213 GB, free: 3.902 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002847/0.3411, allocations: 151.7 kB / 1.213 GB, free: 3.727 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3411, allocations: 4.312 kB / 1.213 GB, free: 3.723 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003612/0.3415, allocations: 169.2 kB / 1.213 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.3415, allocations: 4 kB / 1.213 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.3415, allocations: 4 kB / 1.213 GB, free: 3.543 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.3415, allocations: 7.938 kB / 1.213 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.3416, allocations: 15.92 kB / 1.213 GB, free: 3.52 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.3417, allocations: 4.281 kB / 1.213 GB, free: 3.516 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.912e-05/0.3418, allocations: 19.92 kB / 1.213 GB, free: 3.496 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.3418, allocations: 8 kB / 1.213 GB, free: 3.488 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.0001132/0.3419, allocations: 129.8 kB / 1.214 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.971e-05/0.3419, allocations: 15.81 kB / 1.214 GB, free: 3.336 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.216e-05/0.342, allocations: 25.33 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.342, allocations: 4 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.342, allocations: 0 / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.342, allocations: 3.938 kB / 1.214 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006647/0.3427, allocations: 0.5289 MB / 1.214 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3427, allocations: 0 / 1.214 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.4e-05/0.3428, allocations: 15.92 kB / 1.214 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.822e-06/0.3428, allocations: 7.938 kB / 1.214 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.3428, allocations: 0 / 1.214 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.3428, allocations: 0 / 1.214 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.3428, allocations: 8 kB / 1.214 GB, free: 2.684 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003919/0.3432, allocations: 318.5 kB / 1.214 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.653e-05/0.3433, allocations: 92.86 kB / 1.215 GB, free: 2.246 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.3433, allocations: 8 kB / 1.215 GB, free: 2.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.3435, allocations: 15.98 kB / 1.215 GB, free: 2.223 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.915e-05/0.3436, allocations: 15.92 kB / 1.215 GB, free: 2.207 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.781e-05/0.3436, allocations: 15.98 kB / 1.215 GB, free: 2.191 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.296e-05/0.3437, allocations: 115.2 kB / 1.215 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3437, allocations: 0 / 1.215 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003614/0.3441, allocations: 40 kB / 1.215 GB, free: 2.039 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.001007/0.3451, allocations: 0.9552 MB / 1.216 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000358/0.3454, allocations: 108 kB / 1.216 GB, free: 0.9922 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.3455, allocations: 0 / 1.216 GB, free: 0.9922 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001648/0.3456, allocations: 55.89 kB / 1.216 GB, free: 0.9375 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.346, allocations: 12 kB / 1.216 GB, free: 0.9258 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002252/0.3483, allocations: 1.901 MB / 1.218 GB, free: 14.89 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.3486, allocations: 0.7195 MB / 1.218 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.547e-05/0.3487, allocations: 24.53 kB / 1.218 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.939e-05/0.3488, allocations: 35.44 kB / 1.218 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of SimCode: time 3.51e-07/0.3488, allocations: 0 / 1.218 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02251/0.3713, allocations: 3.523 MB / 1.222 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.701/8.072, allocations: 0.5938 kB / 1.222 GB, free: 10.68 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=50 --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