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: translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_11_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_11_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.005874/0.005874, allocations: 99.38 kB / 15.73 MB, free: 6.008 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.001232/0.001232, allocations: 200.3 kB / 16.68 MB, free: 5.934 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.83/2.83, allocations: 469.8 MB / 0.7425 GB, free: 7.348 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 63.91 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3207, allocations: 159.1 MB / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002559/0.3233, allocations: 1.594 MB / 1.222 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001176/0.3245, allocations: 0.6936 MB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.648e-05/0.3245, allocations: 7.938 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 9.503e-05/0.3246, allocations: 11.81 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.103e-05/0.3247, allocations: 35.66 kB / 1.223 GB, free: 11.5 MB / 0.9825 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.0004486/0.3251, allocations: 103.8 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.3253, allocations: 131.6 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001449/0.3255, allocations: 25.11 kB / 1.223 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.632e-05/0.3256, allocations: 59.77 kB / 1.223 GB, free: 11.19 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.465e-05/0.3257, allocations: 71.67 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.868e-05/0.3257, allocations: 12 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.3258, allocations: 51.97 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.152e-05/0.3258, allocations: 27.91 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.669e-05/0.3259, allocations: 59.66 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002332/0.3261, allocations: 167.3 kB / 1.224 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3262, allocations: 0 / 1.224 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3262, allocations: 0 / 1.224 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.807e-06/0.3262, allocations: 0 / 1.224 GB, free: 10.8 MB / 0.9825 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.0008202/0.327, allocations: 0.5544 MB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.327, allocations: 12.03 kB / 1.224 GB, free: 10.17 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.272e-05/0.3271, allocations: 16.84 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002046/0.3273, allocations: 224.6 kB / 1.224 GB, free: 9.898 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.3273, allocations: 8.375 kB / 1.224 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.019e-05/0.3273, allocations: 4.375 kB / 1.224 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.3276, allocations: 139.6 kB / 1.224 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.3276, allocations: 3.938 kB / 1.224 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/0.3277, allocations: 8 kB / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.3277, allocations: 0 / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002369/0.3279, allocations: 63.94 kB / 1.225 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006322/0.3285, allocations: 476.7 kB / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002178/0.3287, allocations: 77.12 kB / 1.225 GB, free: 9.051 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001369/0.3289, allocations: 49.81 kB / 1.225 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.735e-05/0.3289, allocations: 3.984 kB / 1.225 GB, free: 8.992 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002785/0.3292, allocations: 141 kB / 1.225 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.3292, allocations: 0 / 1.225 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of matching and sorting (n=12): time 0.0005569/0.3297, allocations: 189.7 kB / 1.225 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.3298, allocations: 85.09 kB / 1.226 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.3299, allocations: 154.4 kB / 1.226 GB, free: 8.383 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.631e-05/0.3299, allocations: 29.8 kB / 1.226 GB, free: 8.348 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.544e-05/0.33, allocations: 120.3 kB / 1.226 GB, free: 8.223 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.544e-05/0.33, allocations: 35.72 kB / 1.226 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.369e-05/0.3301, allocations: 29.72 kB / 1.226 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001123/0.3302, allocations: 334.8 kB / 1.226 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.3303, allocations: 31.97 kB / 1.226 GB, free: 7.785 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001909/0.3305, allocations: 130.2 kB / 1.226 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002927/0.3308, allocations: 147.5 kB / 1.226 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3308, allocations: 0 / 1.226 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003558/0.3312, allocations: 169.3 kB / 1.227 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.3312, allocations: 8 kB / 1.227 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.3312, allocations: 0 / 1.227 GB, free: 7.27 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.3312, allocations: 4.281 kB / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.3313, allocations: 19.98 kB / 1.227 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.815e-06/0.3313, allocations: 3.938 kB / 1.227 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.739e-05/0.3314, allocations: 19.92 kB / 1.227 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.3314, allocations: 8 kB / 1.227 GB, free: 7.215 MB / 0.9825 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.0001086/0.3316, allocations: 134.3 kB / 1.227 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.785e-05/0.3316, allocations: 16.14 kB / 1.227 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.053e-05/0.3316, allocations: 17.41 kB / 1.227 GB, free: 7.031 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.3316, allocations: 7.984 kB / 1.227 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.3316, allocations: 3.984 kB / 1.227 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.3316, allocations: 7.938 kB / 1.227 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006618/0.3323, allocations: 0.521 MB / 1.227 GB, free: 6.434 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.3323, allocations: 3.984 kB / 1.227 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.635e-05/0.3324, allocations: 15.98 kB / 1.227 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.3324, allocations: 11.88 kB / 1.227 GB, free: 6.402 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.3324, allocations: 8 kB / 1.227 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3324, allocations: 0 / 1.227 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3324, allocations: 0 / 1.227 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004095/0.3328, allocations: 314.6 kB / 1.228 GB, free: 6.07 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.877e-05/0.3329, allocations: 93.02 kB / 1.228 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.3329, allocations: 11.92 kB / 1.228 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001815/0.3331, allocations: 15.98 kB / 1.228 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.353e-05/0.3331, allocations: 11.98 kB / 1.228 GB, free: 5.922 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-05/0.3332, allocations: 4.094 kB / 1.228 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.914e-05/0.3332, allocations: 128.2 kB / 1.228 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3332, allocations: 0 / 1.228 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003435/0.3336, allocations: 35.94 kB / 1.228 GB, free: 5.758 MB / 0.9825 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.0004024/0.334, allocations: 216.2 kB / 1.228 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003515/0.3343, allocations: 99.81 kB / 1.228 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3343, allocations: 0.5625 kB / 1.228 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001634/0.3345, allocations: 59.89 kB / 1.228 GB, free: 5.422 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003881/0.3349, allocations: 23.97 kB / 1.228 GB, free: 5.402 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004799/0.3354, allocations: 243.3 kB / 1.229 GB, free: 5.137 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.3356, allocations: 0.7197 MB / 1.229 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.423e-05/0.3357, allocations: 16.55 kB / 1.229 GB, free: 4.375 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.619e-05/0.3357, allocations: 23.36 kB / 1.229 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/0.3357, allocations: 0 / 1.229 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of Templates: time 0.004945/0.3407, allocations: 1.802 MB / 1.231 GB, free: 2.562 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.makefile (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 & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/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