Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001144/0.001145, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001074/0.001074, allocations: 196 kB / 16.53 MB, free: 6.656 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.36/1.36, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.706/2.706, allocations: 437 MB / 0.7103 GB, free: 5.172 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 59.91 kB / 0.8692 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6284/0.6296, allocations: 151.6 MB / 1.017 GB, free: 2.559 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002703/0.6323, allocations: 1.592 MB / 1.019 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00119/0.6335, allocations: 0.6936 MB / 1.019 GB, free: 264 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.787e-05/0.6336, allocations: 3.938 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.378e-05/0.6337, allocations: 11.81 kB / 1.02 GB, free: 248 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.514e-05/0.6338, allocations: 23.78 kB / 1.02 GB, free: 224 kB / 0.7637 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.0004414/0.6342, allocations: 111.7 kB / 1.02 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.00019/0.6344, allocations: 131.6 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.6346, allocations: 37.02 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.429e-05/0.6347, allocations: 59.77 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.926e-05/0.6348, allocations: 63.69 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.532e-05/0.6348, allocations: 12 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.6349, allocations: 43.97 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.231e-05/0.635, allocations: 31.89 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.734e-05/0.635, allocations: 63.67 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002384/0.6353, allocations: 173.5 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.6353, allocations: 0 / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.452e-06/0.6353, allocations: 0 / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.6353, allocations: 0 / 1.02 GB, free: 15.5 MB / 0.7794 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.0008274/0.6361, allocations: 0.5389 MB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.6362, allocations: 8.031 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.254e-05/0.6363, allocations: 24.73 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.6365, allocations: 220.5 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.6365, allocations: 4.375 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.6365, allocations: 8.375 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000308/0.6368, allocations: 131.7 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.6369, allocations: 0 / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.6369, allocations: 3.984 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.6369, allocations: 4 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002463/0.6372, allocations: 67.88 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006194/0.6378, allocations: 464.8 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/0.638, allocations: 85.11 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.6381, allocations: 49.81 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.6382, allocations: 4 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002889/0.6385, allocations: 145 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.6385, allocations: 0 / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005718/0.6391, allocations: 189.3 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.761e-05/0.6391, allocations: 85.05 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/0.6393, allocations: 159.4 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.6393, allocations: 33.7 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.802e-05/0.6394, allocations: 116.2 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.587e-05/0.6394, allocations: 31.69 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.644e-05/0.6395, allocations: 33.7 kB / 1.023 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.6396, allocations: 330.8 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.6398, allocations: 31.97 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001766/0.6399, allocations: 118.3 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.6402, allocations: 147.5 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.6402, allocations: 0 / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003578/0.6406, allocations: 165.2 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.6406, allocations: 9.562 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.6406, allocations: 0 / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.6407, allocations: 4 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.6408, allocations: 24.44 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.6408, allocations: 7.984 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.679e-05/0.6409, allocations: 15.92 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.6409, allocations: 8.375 kB / 1.023 GB, free: 11.95 MB / 0.7794 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.0001136/0.641, allocations: 145.7 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.939e-05/0.6411, allocations: 19.81 kB / 1.024 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.457e-05/0.6411, allocations: 17.39 kB / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.6411, allocations: 3.938 kB / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.6411, allocations: 0 / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.6411, allocations: 11.88 kB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007358/0.6419, allocations: 0.5366 MB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.6419, allocations: 0 / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.545e-05/0.642, allocations: 11.98 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.642, allocations: 3.938 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.642, allocations: 8 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.642, allocations: 0 / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.642, allocations: 0 / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004614/0.6425, allocations: 318.6 kB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.32e-05/0.6426, allocations: 88.92 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.71e-05/0.6426, allocations: 7.938 kB / 1.024 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.6428, allocations: 15.98 kB / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.695e-05/0.6429, allocations: 11.98 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.766e-05/0.6429, allocations: 11.98 kB / 1.025 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.607e-05/0.643, allocations: 119.2 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.643, allocations: 0 / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003644/0.6434, allocations: 36 kB / 1.025 GB, free: 10.5 MB / 0.7794 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.0005156/0.6439, allocations: 212.5 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000411/0.6444, allocations: 115.7 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.6444, allocations: 3.938 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.6445, allocations: 52.53 kB / 1.025 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003697/0.6449, allocations: 15.98 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005405/0.6455, allocations: 247.7 kB / 1.025 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.6458, allocations: 0.7119 MB / 1.026 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.463e-05/0.6459, allocations: 24.62 kB / 1.026 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.552e-05/0.6459, allocations: 15.44 kB / 1.026 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.6459, allocations: 0 / 1.026 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of Templates: time 0.005381/0.6513, allocations: 1.789 MB / 1.028 GB, free: 7.312 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches