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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001275/0.001275, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001332/0.001332, allocations: 198.4 kB / 16.14 MB, free: 6.648 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.353/1.353, allocations: 222.9 MB / 239.8 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.683/2.683, allocations: 461.8 MB / 0.7342 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 69.47 kB / 0.8985 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3472, allocations: 157.4 MB / 1.052 GB, free: 8.234 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003132/0.3504, allocations: 1.646 MB / 1.054 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001339/0.3517, allocations: 0.6974 MB / 1.054 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.546e-05/0.3518, allocations: 4 kB / 1.054 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.352, allocations: 11.86 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.14e-05/0.352, allocations: 15.86 kB / 1.055 GB, free: 5.84 MB / 0.8106 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0004906/0.3525, allocations: 99.83 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001954/0.3527, allocations: 127.5 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001409/0.3529, allocations: 37.11 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.353, allocations: 47.83 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.171e-05/0.3531, allocations: 67.62 kB / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.557e-05/0.3531, allocations: 7.938 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/0.3533, allocations: 47.97 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.264e-05/0.3534, allocations: 31.89 kB / 1.055 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.174e-05/0.3534, allocations: 51.67 kB / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002381/0.3537, allocations: 163.7 kB / 1.055 GB, free: 5.172 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3537, allocations: 4 kB / 1.055 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.353e-06/0.3537, allocations: 0 / 1.055 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.581e-06/0.3537, allocations: 0 / 1.055 GB, free: 5.168 MB / 0.8106 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.0008571/0.3546, allocations: 0.5351 MB / 1.056 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.3546, allocations: 19.97 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.783e-05/0.3547, allocations: 38.73 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.502e-05/0.3547, allocations: 16.75 kB / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002105/0.355, allocations: 212 kB / 1.056 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.355, allocations: 8.375 kB / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.355, allocations: 12.36 kB / 1.056 GB, free: 4.219 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000319/0.3553, allocations: 129.1 kB / 1.056 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.3553, allocations: 0 / 1.056 GB, free: 4.082 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.3554, allocations: 8 kB / 1.056 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.3554, allocations: 4 kB / 1.056 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002447/0.3556, allocations: 67.88 kB / 1.056 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006375/0.3563, allocations: 464.7 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/0.3565, allocations: 85.23 kB / 1.057 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00013/0.3566, allocations: 49.75 kB / 1.057 GB, free: 3.34 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.3567, allocations: 8 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.357, allocations: 144.9 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.357, allocations: 0 / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.0005536/0.3575, allocations: 185.4 kB / 1.057 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.3576, allocations: 81.11 kB / 1.057 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.3577, allocations: 171.8 kB / 1.057 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.3578, allocations: 33.64 kB / 1.057 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.23e-05/0.3578, allocations: 112.3 kB / 1.057 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.966e-05/0.3579, allocations: 27.64 kB / 1.057 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.086e-05/0.3579, allocations: 42.08 kB / 1.058 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.358, allocations: 326.8 kB / 1.058 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.3582, allocations: 35.97 kB / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.3584, allocations: 118.3 kB / 1.058 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002811/0.3587, allocations: 143.5 kB / 1.058 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3587, allocations: 0 / 1.058 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000364/0.359, allocations: 173.5 kB / 1.058 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.3591, allocations: 4 kB / 1.058 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.3591, allocations: 4 kB / 1.058 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.3591, allocations: 4 kB / 1.058 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.3592, allocations: 19.91 kB / 1.058 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.3592, allocations: 4.281 kB / 1.058 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.3593, allocations: 23.92 kB / 1.058 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.3594, allocations: 8 kB / 1.058 GB, free: 1.555 MB / 0.8106 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.0001176/0.3595, allocations: 129.8 kB / 1.058 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.099e-05/0.3595, allocations: 15.81 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.698e-05/0.3596, allocations: 21.34 kB / 1.059 GB, free: 1.383 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.3596, allocations: 4 kB / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.3596, allocations: 0 / 1.059 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.3596, allocations: 7.922 kB / 1.059 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006608/0.3603, allocations: 0.5288 MB / 1.059 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3603, allocations: 0 / 1.059 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.379e-05/0.3604, allocations: 15.98 kB / 1.059 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.599e-06/0.3604, allocations: 3.938 kB / 1.059 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.3604, allocations: 11.98 kB / 1.059 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.3604, allocations: 8 kB / 1.059 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3604, allocations: 0 / 1.059 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003898/0.3608, allocations: 314.5 kB / 1.059 GB, free: 432 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.581e-05/0.3608, allocations: 88.95 kB / 1.059 GB, free: 324 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.3609, allocations: 7.984 kB / 1.059 GB, free: 316 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001715/0.3611, allocations: 15.98 kB / 1.059 GB, free: 300 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.948e-05/0.3611, allocations: 11.98 kB / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.404e-05/0.3611, allocations: 8 kB / 1.06 GB, free: 280 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.336e-05/0.3612, allocations: 127.2 kB / 1.06 GB, free: 152 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3612, allocations: 0 / 1.06 GB, free: 152 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003359/0.3616, allocations: 36 kB / 1.06 GB, free: 116 kB / 0.8106 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.0009544/0.3625, allocations: 0.9607 MB / 1.061 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003474/0.3629, allocations: 111.8 kB / 1.061 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3629, allocations: 3.938 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.3631, allocations: 51.91 kB / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003741/0.3635, allocations: 20.06 kB / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002087/0.3656, allocations: 1.91 MB / 1.063 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.3658, allocations: 0.7121 MB / 1.063 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.632e-05/0.3659, allocations: 24.47 kB / 1.063 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.736e-05/0.366, allocations: 43.42 kB / 1.063 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of SimCode: time 2.8e-07/0.366, allocations: 0 / 1.063 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1942/0.5603, allocations: 3.159 MB / 1.066 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002308/0.5605, allocations: 244.6 kB / 1.067 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.775/2.336, allocations: 3.938 kB / 1.067 GB, free: 8.82 MB / 0.8262 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