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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001524/0.001524, allocations: 108 kB / 15.61 MB, free: 152 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.001789/0.001789, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.751/2.751, allocations: 472.6 MB / 0.7451 GB, free: 4.676 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 65.83 kB / 0.912 GB, free: 33.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2979/0.2992, allocations: 159.9 MB / 1.068 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002938/0.3022, allocations: 1.583 MB / 1.07 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001363/0.3036, allocations: 0.6973 MB / 1.07 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.739e-05/0.3037, allocations: 4 kB / 1.07 GB, free: 8.168 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.997e-05/0.3038, allocations: 19.8 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.745e-05/0.3038, allocations: 15.8 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.0004309/0.3043, allocations: 119.7 kB / 1.071 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001781/0.3045, allocations: 131.6 kB / 1.071 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.3046, allocations: 40.88 kB / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.218e-05/0.3047, allocations: 55.83 kB / 1.071 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.3048, allocations: 67.67 kB / 1.071 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.3049, allocations: 8 kB / 1.071 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.305, allocations: 55.91 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.962e-05/0.3051, allocations: 35.84 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.791e-05/0.3051, allocations: 59.66 kB / 1.071 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002254/0.3054, allocations: 167.7 kB / 1.071 GB, free: 7.406 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.3054, allocations: 4 kB / 1.071 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.342e-06/0.3054, allocations: 0 / 1.071 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.885e-06/0.3054, allocations: 0 / 1.071 GB, free: 7.402 MB / 0.8262 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.000842/0.3062, allocations: 0.5445 MB / 1.072 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.3063, allocations: 12.03 kB / 1.072 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.737e-05/0.3063, allocations: 12.84 kB / 1.072 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.3066, allocations: 213 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.3066, allocations: 12.36 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.825e-05/0.3066, allocations: 8.375 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003145/0.3069, allocations: 131.6 kB / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.3069, allocations: 0 / 1.072 GB, free: 6.363 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.307, allocations: 4 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.307, allocations: 4 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002714/0.3073, allocations: 71.88 kB / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000643/0.3079, allocations: 472.6 kB / 1.073 GB, free: 5.77 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/0.3081, allocations: 85.12 kB / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.3083, allocations: 45.81 kB / 1.073 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.3083, allocations: 7.984 kB / 1.073 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003115/0.3086, allocations: 141 kB / 1.073 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 2.766e-06/0.3086, allocations: 3.984 kB / 1.073 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.000562/0.3092, allocations: 189.3 kB / 1.073 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.3093, allocations: 85.09 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.3094, allocations: 162.4 kB / 1.073 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.477e-05/0.3094, allocations: 29.7 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.751e-05/0.3095, allocations: 104.4 kB / 1.073 GB, free: 4.844 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.582e-05/0.3095, allocations: 35.59 kB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.162e-05/0.3096, allocations: 29.72 kB / 1.073 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.3097, allocations: 338.8 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.3099, allocations: 39.91 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.31, allocations: 118.2 kB / 1.074 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/0.3103, allocations: 147.9 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3103, allocations: 0 / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003694/0.3107, allocations: 169.2 kB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.3107, allocations: 4 kB / 1.074 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.3108, allocations: 7.938 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.3108, allocations: 4 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.905e-05/0.3109, allocations: 11.98 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.3109, allocations: 7.938 kB / 1.074 GB, free: 3.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.843e-05/0.311, allocations: 24.2 kB / 1.074 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.311, allocations: 4.109 kB / 1.074 GB, free: 3.836 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.0001161/0.3111, allocations: 138.3 kB / 1.074 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/0.3112, allocations: 11.91 kB / 1.074 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.371e-05/0.3112, allocations: 17.41 kB / 1.074 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3112, allocations: 4 kB / 1.074 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.3112, allocations: 3.984 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.3112, allocations: 7.875 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006755/0.3119, allocations: 0.5289 MB / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3119, allocations: 3.984 kB / 1.075 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.446e-05/0.312, allocations: 15.92 kB / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.312, allocations: 7.938 kB / 1.075 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.312, allocations: 4 kB / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3121, allocations: 0 / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3121, allocations: 8 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003999/0.3125, allocations: 306.6 kB / 1.075 GB, free: 2.703 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.273e-05/0.3125, allocations: 92.95 kB / 1.075 GB, free: 2.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.3126, allocations: 11.92 kB / 1.075 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.3127, allocations: 15.98 kB / 1.075 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.833e-05/0.3128, allocations: 19.86 kB / 1.075 GB, free: 2.547 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.3128, allocations: 8 kB / 1.075 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.611e-05/0.3129, allocations: 120.2 kB / 1.076 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.6e-07/0.3129, allocations: 4 kB / 1.076 GB, free: 2.418 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003324/0.3133, allocations: 39.91 kB / 1.076 GB, free: 2.379 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.0003884/0.3137, allocations: 212.9 kB / 1.076 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003682/0.314, allocations: 107.8 kB / 1.076 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3141, allocations: 0 / 1.076 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001635/0.3142, allocations: 52.47 kB / 1.076 GB, free: 2.047 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.3146, allocations: 27.98 kB / 1.076 GB, free: 2.02 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004399/0.315, allocations: 239.7 kB / 1.076 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.3153, allocations: 0.7195 MB / 1.077 GB, free: 1.012 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.669e-05/0.3154, allocations: 20.53 kB / 1.077 GB, free: 0.9883 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.016e-05/0.3154, allocations: 19.44 kB / 1.077 GB, free: 0.9688 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3154, allocations: 0 / 1.077 GB, free: 0.9688 MB / 0.8262 GB Notification: Performance of Templates: time 0.004724/0.3202, allocations: 1.785 MB / 1.079 GB, free: 15.2 MB / 0.8419 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/jenkins/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