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: translateModel(Buildings.Utilities.IO.Files.Examples.Printer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pri1.x.1.|pri1.x.2.",fileNamePrefix="Buildings_latest_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_latest_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.0008759/0.0008756, allocations: 92.23 kB / 16.02 MB, free: 80 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.000928/0.000928, allocations: 183.3 kB / 16.92 MB, free: 6.926 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.355/1.355, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.784/2.784, allocations: 462.6 MB / 0.737 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004526/0.0004529, allocations: 12.69 kB / 0.9034 GB, free: 36.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3328, allocations: 159.6 MB / 1.059 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001758/0.3346, allocations: 1.299 MB / 1.061 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001137/0.3358, allocations: 0.6895 MB / 1.061 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.458e-05/0.3358, allocations: 0 / 1.061 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 8.823e-05/0.3359, allocations: 7.938 kB / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.443e-05/0.336, allocations: 27.78 kB / 1.061 GB, free: 2.934 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.0004193/0.3364, allocations: 91.83 kB / 1.061 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001613/0.3366, allocations: 135.5 kB / 1.062 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001317/0.3367, allocations: 29.11 kB / 1.062 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.104e-05/0.3368, allocations: 47.83 kB / 1.062 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.452e-05/0.3369, allocations: 63.67 kB / 1.062 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.3369, allocations: 4 kB / 1.062 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001045/0.337, allocations: 35.98 kB / 1.062 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.796e-05/0.3371, allocations: 27.89 kB / 1.062 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.97e-05/0.3372, allocations: 73.38 kB / 1.062 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.3373, allocations: 112 kB / 1.062 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.3374, allocations: 0 / 1.062 GB, free: 2.32 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.774e-06/0.3374, allocations: 7.938 kB / 1.062 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.3374, allocations: 4 kB / 1.062 GB, free: 2.309 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.0007522/0.3381, allocations: 0.5274 MB / 1.062 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.3382, allocations: 15.91 kB / 1.062 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.096e-05/0.3382, allocations: 16.75 kB / 1.062 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.3384, allocations: 212.1 kB / 1.063 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.843e-05/0.3385, allocations: 8.375 kB / 1.063 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.166e-05/0.3385, allocations: 8.375 kB / 1.063 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003115/0.3388, allocations: 146.4 kB / 1.063 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.3388, allocations: 0 / 1.063 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.3388, allocations: 11.94 kB / 1.063 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.3389, allocations: 0 / 1.063 GB, free: 1.258 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002604/0.3391, allocations: 87.88 kB / 1.063 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006072/0.3397, allocations: 472.7 kB / 1.063 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001977/0.3399, allocations: 85.17 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/0.3401, allocations: 57.81 kB / 1.063 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.3401, allocations: 7.938 kB / 1.063 GB, free: 496 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000289/0.3404, allocations: 149 kB / 1.064 GB, free: 328 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.3404, allocations: 0 / 1.064 GB, free: 328 kB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.000591/0.341, allocations: 217.3 kB / 1.064 GB, free: 104 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.3411, allocations: 81.11 kB / 1.064 GB, free: 4 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.3412, allocations: 163.9 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/0.3413, allocations: 33.7 kB / 1.064 GB, free: 15.8 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.92e-05/0.3413, allocations: 112.3 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.026e-05/0.3414, allocations: 23.7 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-05/0.3414, allocations: 17.72 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.3415, allocations: 334.8 kB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.3417, allocations: 47.91 kB / 1.065 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.3419, allocations: 126.3 kB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003028/0.3422, allocations: 159.5 kB / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3422, allocations: 112 / 1.065 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003711/0.3426, allocations: 193.4 kB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.3426, allocations: 4 kB / 1.065 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.3426, allocations: 4.375 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.3426, allocations: 3.938 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001132/0.3427, allocations: 19.98 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.3428, allocations: 4 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.3429, allocations: 27.86 kB / 1.065 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.3429, allocations: 8.062 kB / 1.065 GB, free: 14.64 MB / 0.8262 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.0001068/0.343, allocations: 133.8 kB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.485e-05/0.343, allocations: 16.05 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.289e-05/0.3431, allocations: 17.41 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.3431, allocations: 7.969 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3431, allocations: 0 / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.3431, allocations: 7.938 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006687/0.3438, allocations: 0.5483 MB / 1.066 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3438, allocations: 0 / 1.066 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.76e-05/0.3439, allocations: 19.98 kB / 1.066 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.3439, allocations: 3.938 kB / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.3439, allocations: 8 kB / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3439, allocations: 0 / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.3439, allocations: 0 / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004128/0.3443, allocations: 330.5 kB / 1.066 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.106e-05/0.3444, allocations: 92.86 kB / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.3444, allocations: 15.92 kB / 1.066 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/0.3446, allocations: 19.98 kB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.182e-05/0.3447, allocations: 15.98 kB / 1.066 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.307e-05/0.3447, allocations: 7.984 kB / 1.066 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.05e-05/0.3448, allocations: 119.2 kB / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3448, allocations: 0 / 1.066 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003277/0.3451, allocations: 32 kB / 1.066 GB, free: 13.16 MB / 0.8262 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.0004046/0.3456, allocations: 212.6 kB / 1.067 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003645/0.3459, allocations: 124.2 kB / 1.067 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3459, allocations: 0 / 1.067 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001691/0.3461, allocations: 63.95 kB / 1.067 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003617/0.3465, allocations: 17.95 kB / 1.067 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004823/0.347, allocations: 324.6 kB / 1.067 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.3472, allocations: 0.7121 MB / 1.068 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.654e-05/0.3473, allocations: 15.44 kB / 1.068 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3473, allocations: 0 / 1.068 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of Templates: time 0.003696/0.351, allocations: 2.037 MB / 1.07 GB, free: 9.652 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.makefile (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 & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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