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.006917/0.006917, allocations: 101.7 kB / 15.88 MB, free: 5.867 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.001666/0.001666, allocations: 193.9 kB / 16.79 MB, free: 5.809 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.386/1.386, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.816/2.816, allocations: 461.9 MB / 0.7348 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 67.59 kB / 0.899 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2984/0.2997, allocations: 157.4 MB / 1.053 GB, free: 8.227 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003134/0.3029, allocations: 1.638 MB / 1.054 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001512/0.3044, allocations: 0.7051 MB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.3046, allocations: 0 / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000169/0.3048, allocations: 11.86 kB / 1.055 GB, free: 5.852 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001387/0.305, allocations: 11.88 kB / 1.055 GB, free: 5.84 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.0008276/0.3058, allocations: 103.8 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003862/0.3063, allocations: 131.5 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003088/0.3066, allocations: 37.08 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001643/0.3068, allocations: 43.84 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.3069, allocations: 71.62 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.352e-05/0.3069, allocations: 4 kB / 1.055 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001684/0.3071, allocations: 43.97 kB / 1.055 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.706e-05/0.3072, allocations: 31.89 kB / 1.056 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.229e-05/0.3073, allocations: 51.67 kB / 1.056 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002219/0.3075, allocations: 112 kB / 1.056 GB, free: 5.223 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.3075, allocations: 7.922 kB / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.844e-06/0.3075, allocations: 0 / 1.056 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.107e-06/0.3075, allocations: 0 / 1.056 GB, free: 5.215 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.001023/0.3086, allocations: 0.5352 MB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.3086, allocations: 11.97 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.026e-05/0.3087, allocations: 20.69 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002468/0.309, allocations: 220 kB / 1.056 GB, free: 4.328 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.309, allocations: 8.375 kB / 1.056 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.756e-05/0.309, allocations: 20.31 kB / 1.056 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003554/0.3094, allocations: 129.9 kB / 1.057 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.3094, allocations: 0 / 1.057 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.3094, allocations: 0 / 1.057 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.3095, allocations: 4 kB / 1.057 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002533/0.3097, allocations: 71.92 kB / 1.057 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007136/0.3104, allocations: 460.7 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/0.3107, allocations: 89.12 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.3108, allocations: 49.8 kB / 1.057 GB, free: 3.426 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.116e-05/0.3108, allocations: 4 kB / 1.057 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003255/0.3112, allocations: 148.9 kB / 1.057 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 1.964e-06/0.3112, allocations: 4 kB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.0006264/0.3118, allocations: 181.4 kB / 1.058 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.844e-05/0.3119, allocations: 81.09 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.312, allocations: 163.9 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.912e-05/0.3121, allocations: 33.7 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.509e-05/0.3122, allocations: 112.4 kB / 1.058 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.382e-05/0.3122, allocations: 27.64 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.469e-05/0.3123, allocations: 33.7 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.3124, allocations: 330.8 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.3125, allocations: 39.84 kB / 1.058 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.3127, allocations: 120.2 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002966/0.313, allocations: 155.5 kB / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.313, allocations: 0 / 1.059 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003658/0.3134, allocations: 161.5 kB / 1.059 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.3134, allocations: 8.031 kB / 1.059 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.3135, allocations: 4 kB / 1.059 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.3135, allocations: 4 kB / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.3136, allocations: 19.92 kB / 1.059 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.3136, allocations: 4 kB / 1.059 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.3137, allocations: 16.3 kB / 1.059 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.3138, allocations: 12 kB / 1.059 GB, free: 1.648 MB / 0.8106 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.0001236/0.3139, allocations: 126.1 kB / 1.059 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.148e-05/0.3139, allocations: 19.81 kB / 1.059 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.069e-05/0.314, allocations: 29.25 kB / 1.059 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.314, allocations: 4 kB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.314, allocations: 0 / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.314, allocations: 3.938 kB / 1.059 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007448/0.3148, allocations: 0.5328 MB / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.3148, allocations: 0 / 1.06 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.598e-05/0.3149, allocations: 19.92 kB / 1.06 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.3149, allocations: 3.938 kB / 1.06 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.3149, allocations: 4 kB / 1.06 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.3149, allocations: 4 kB / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-06/0.3149, allocations: 0 / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004159/0.3153, allocations: 314.6 kB / 1.06 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.362e-05/0.3154, allocations: 100.8 kB / 1.06 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.586e-05/0.3154, allocations: 11.94 kB / 1.06 GB, free: 396 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.3156, allocations: 11.98 kB / 1.06 GB, free: 384 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.891e-05/0.3157, allocations: 7.984 kB / 1.06 GB, free: 376 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.156e-05/0.3157, allocations: 15.98 kB / 1.06 GB, free: 360 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.416e-05/0.3158, allocations: 123.2 kB / 1.06 GB, free: 236 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3158, allocations: 0 / 1.06 GB, free: 236 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003565/0.3162, allocations: 32 kB / 1.06 GB, free: 204 kB / 0.8106 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.0004367/0.3166, allocations: 200.9 kB / 1.06 GB, free: 36 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003822/0.317, allocations: 115.9 kB / 1.06 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.317, allocations: 4 kB / 1.06 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.00016/0.3172, allocations: 51.91 kB / 1.06 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000374/0.3176, allocations: 19.98 kB / 1.061 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000535/0.3181, allocations: 307.5 kB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.3184, allocations: 0.716 MB / 1.061 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.969e-05/0.3184, allocations: 15.44 kB / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of SimCode: time 3.61e-07/0.3185, allocations: 0 / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of Templates: time 0.004435/0.3229, allocations: 2.065 MB / 1.064 GB, free: 12.7 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