Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer") translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005117/0.005117, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001112/0.001112, allocations: 202.3 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 4.203 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.341/2.341, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 58.84 kB / 0.9508 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3398/0.341, allocations: 140.4 MB / 1.088 GB, free: 1.527 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002811/0.3438, allocations: 1.582 MB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001288/0.3452, allocations: 0.6987 MB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.515e-05/0.3452, allocations: 4 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.3454, allocations: 15.8 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.945e-05/0.3454, allocations: 11.81 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.000493/0.3459, allocations: 111.7 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001936/0.3461, allocations: 139.5 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.3463, allocations: 41.08 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.554e-05/0.3464, allocations: 51.84 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.698e-05/0.3465, allocations: 67.67 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.225e-05/0.3465, allocations: 12 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.3466, allocations: 51.91 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.827e-05/0.3467, allocations: 31.91 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.208e-05/0.3468, allocations: 59.66 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002474/0.347, allocations: 167.3 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.3471, allocations: 0 / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.102e-06/0.3471, allocations: 0 / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.473e-06/0.3471, allocations: 0 / 1.091 GB, free: 14.48 MB / 0.8575 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.000884/0.348, allocations: 0.5544 MB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.348, allocations: 8.031 kB / 1.091 GB, free: 13.85 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.489e-05/0.3481, allocations: 16.84 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.3483, allocations: 225 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.3483, allocations: 8.375 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.35e-05/0.3484, allocations: 8.375 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003268/0.3487, allocations: 139.6 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.3487, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.075e-05/0.3487, allocations: 8 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.3487, allocations: 4 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000231/0.349, allocations: 67.88 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006256/0.3496, allocations: 452.8 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.3498, allocations: 93.05 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.35, allocations: 49.81 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.35, allocations: 0 / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002952/0.3503, allocations: 152.9 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.724e-06/0.3503, allocations: 4 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0005631/0.3509, allocations: 181.5 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.384e-05/0.351, allocations: 85.05 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.3511, allocations: 166.3 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.3511, allocations: 33.69 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.598e-05/0.3512, allocations: 104.4 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.648e-05/0.3513, allocations: 39.73 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.558e-05/0.3513, allocations: 33.7 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.3515, allocations: 330.8 kB / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.3516, allocations: 35.97 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/0.3518, allocations: 118.3 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002921/0.3521, allocations: 147.5 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.3521, allocations: 0 / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000366/0.3525, allocations: 169.3 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.3525, allocations: 5.875 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.3525, allocations: 4 kB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.3525, allocations: 4 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.3527, allocations: 24.19 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.3527, allocations: 4 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.855e-05/0.3528, allocations: 19.92 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.3528, allocations: 4 kB / 1.094 GB, free: 10.89 MB / 0.8575 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.000117/0.3529, allocations: 138.2 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.353, allocations: 15.91 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.945e-05/0.353, allocations: 21.39 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.353, allocations: 4 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.353, allocations: 4 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.353, allocations: 3.938 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007152/0.3538, allocations: 0.5331 MB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.3538, allocations: 0 / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.168e-05/0.3538, allocations: 11.98 kB / 1.095 GB, free: 10.1 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.463e-06/0.3539, allocations: 7.938 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/0.3539, allocations: 8 kB / 1.095 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3539, allocations: 0 / 1.095 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3539, allocations: 4 kB / 1.095 GB, free: 10.08 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004051/0.3543, allocations: 314.6 kB / 1.095 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.943e-05/0.3544, allocations: 93.02 kB / 1.095 GB, free: 9.645 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.468e-05/0.3544, allocations: 11.94 kB / 1.095 GB, free: 9.633 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001767/0.3546, allocations: 19.97 kB / 1.095 GB, free: 9.613 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.3546, allocations: 11.98 kB / 1.095 GB, free: 9.602 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-05/0.3547, allocations: 8 kB / 1.095 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.244e-05/0.3548, allocations: 116.2 kB / 1.095 GB, free: 9.48 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3548, allocations: 4 kB / 1.095 GB, free: 9.477 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003341/0.3551, allocations: 43.88 kB / 1.095 GB, free: 9.434 MB / 0.8575 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.0004018/0.3555, allocations: 199.9 kB / 1.096 GB, free: 9.27 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003456/0.3559, allocations: 107.8 kB / 1.096 GB, free: 9.164 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3559, allocations: 0 / 1.096 GB, free: 9.164 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000155/0.356, allocations: 56.47 kB / 1.096 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.3564, allocations: 24.16 kB / 1.096 GB, free: 9.086 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004452/0.3569, allocations: 239.6 kB / 1.096 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.3572, allocations: 0.7155 MB / 1.097 GB, free: 8.082 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.304e-05/0.3573, allocations: 32.47 kB / 1.097 GB, free: 8.051 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.031e-05/0.3573, allocations: 11.44 kB / 1.097 GB, free: 8.039 MB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.3573, allocations: 0 / 1.097 GB, free: 8.039 MB / 0.8575 GB Notification: Performance of Templates: time 0.004987/0.3623, allocations: 1.789 MB / 1.098 GB, free: 6.266 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches