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.00126/0.00126, allocations: 105.2 kB / 16.27 MB, free: 5.98 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.001313/0.001313, allocations: 189.8 kB / 17.2 MB, free: 5.605 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.38/1.38, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.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.502/2.502, allocations: 437.1 MB / 0.7111 GB, free: 4.508 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 56.09 kB / 0.8699 GB, free: 2.23 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3074, allocations: 151.6 MB / 1.018 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003758/0.3112, allocations: 1.583 MB / 1.02 GB, free: 9.078 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001608/0.3128, allocations: 0.7066 MB / 1.02 GB, free: 8.367 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.954e-05/0.3129, allocations: 4 kB / 1.02 GB, free: 8.363 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.3131, allocations: 15.8 kB / 1.02 GB, free: 8.348 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.561e-05/0.3132, allocations: 15.81 kB / 1.02 GB, free: 8.332 MB / 0.795 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.0005979/0.3138, allocations: 111.7 kB / 1.02 GB, free: 8.223 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002234/0.3141, allocations: 139.5 kB / 1.02 GB, free: 8.086 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.3142, allocations: 33.11 kB / 1.021 GB, free: 8.051 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.3144, allocations: 47.84 kB / 1.021 GB, free: 8.004 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000117/0.3145, allocations: 67.67 kB / 1.021 GB, free: 7.938 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.714e-05/0.3145, allocations: 8 kB / 1.021 GB, free: 7.93 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001485/0.3147, allocations: 55.89 kB / 1.021 GB, free: 7.875 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 6.404e-05/0.3147, allocations: 27.92 kB / 1.021 GB, free: 7.848 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001037/0.3149, allocations: 67.64 kB / 1.021 GB, free: 7.781 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002831/0.3151, allocations: 159.8 kB / 1.021 GB, free: 7.625 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3152, allocations: 0 / 1.021 GB, free: 7.625 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3152, allocations: 4 kB / 1.021 GB, free: 7.621 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.723e-06/0.3152, allocations: 0 / 1.021 GB, free: 7.621 MB / 0.795 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.0009861/0.3162, allocations: 0.5429 MB / 1.021 GB, free: 7.012 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.3162, allocations: 15.97 kB / 1.021 GB, free: 6.996 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.108e-05/0.3163, allocations: 20.75 kB / 1.021 GB, free: 6.977 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002556/0.3166, allocations: 217.1 kB / 1.022 GB, free: 6.727 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.3166, allocations: 8.375 kB / 1.022 GB, free: 6.719 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.3166, allocations: 8.375 kB / 1.022 GB, free: 6.711 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.317, allocations: 128.1 kB / 1.022 GB, free: 6.574 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.317, allocations: 8 kB / 1.022 GB, free: 6.566 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/0.317, allocations: 4 kB / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.317, allocations: 0 / 1.022 GB, free: 6.562 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002616/0.3173, allocations: 67.94 kB / 1.022 GB, free: 6.496 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007214/0.318, allocations: 472.6 kB / 1.022 GB, free: 5.98 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/0.3182, allocations: 81.12 kB / 1.022 GB, free: 5.883 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.3184, allocations: 49.81 kB / 1.022 GB, free: 5.828 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.3184, allocations: 3.984 kB / 1.022 GB, free: 5.824 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003706/0.3188, allocations: 148.9 kB / 1.023 GB, free: 5.66 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.3188, allocations: 0 / 1.023 GB, free: 5.66 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0005852/0.3194, allocations: 185.4 kB / 1.023 GB, free: 5.473 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.3195, allocations: 89.08 kB / 1.023 GB, free: 5.367 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.3196, allocations: 162.4 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.897e-05/0.3197, allocations: 25.7 kB / 1.023 GB, free: 5.168 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.881e-05/0.3198, allocations: 112.3 kB / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.802e-05/0.3198, allocations: 27.7 kB / 1.023 GB, free: 5.023 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.896e-05/0.3199, allocations: 37.72 kB / 1.023 GB, free: 4.98 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001484/0.32, allocations: 326.8 kB / 1.024 GB, free: 4.652 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.3202, allocations: 43.91 kB / 1.024 GB, free: 4.609 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.3204, allocations: 118.2 kB / 1.024 GB, free: 4.457 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/0.3207, allocations: 143.5 kB / 1.024 GB, free: 4.289 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3207, allocations: 4 kB / 1.024 GB, free: 4.285 MB / 0.795 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004015/0.3211, allocations: 169.2 kB / 1.024 GB, free: 4.113 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3212, allocations: 4 kB / 1.024 GB, free: 4.109 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.3212, allocations: 4 kB / 1.024 GB, free: 4.105 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.3212, allocations: 0 / 1.024 GB, free: 4.105 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.3213, allocations: 16.27 kB / 1.024 GB, free: 4.09 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.3213, allocations: 12.31 kB / 1.024 GB, free: 4.078 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001172/0.3215, allocations: 19.92 kB / 1.024 GB, free: 4.059 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.3215, allocations: 7.984 kB / 1.024 GB, free: 4.051 MB / 0.795 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.0001434/0.3216, allocations: 129.9 kB / 1.024 GB, free: 3.914 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.59e-05/0.3217, allocations: 23.69 kB / 1.024 GB, free: 3.891 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.626e-05/0.3217, allocations: 17.41 kB / 1.024 GB, free: 3.875 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.3217, allocations: 3.984 kB / 1.024 GB, free: 3.871 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.3218, allocations: 4 kB / 1.024 GB, free: 3.867 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.3218, allocations: 7.938 kB / 1.024 GB, free: 3.859 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007935/0.3226, allocations: 0.5288 MB / 1.025 GB, free: 3.273 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3226, allocations: 0 / 1.025 GB, free: 3.273 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.726e-05/0.3227, allocations: 15.92 kB / 1.025 GB, free: 3.258 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.3227, allocations: 7.938 kB / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.3227, allocations: 8 kB / 1.025 GB, free: 3.242 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.3227, allocations: 4 kB / 1.025 GB, free: 3.238 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3227, allocations: 0 / 1.025 GB, free: 3.238 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004502/0.3232, allocations: 310.7 kB / 1.025 GB, free: 2.918 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.507e-05/0.3232, allocations: 92.86 kB / 1.025 GB, free: 2.809 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.643e-05/0.3233, allocations: 11.92 kB / 1.025 GB, free: 2.797 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.3235, allocations: 15.98 kB / 1.025 GB, free: 2.781 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.503e-05/0.3235, allocations: 15.92 kB / 1.025 GB, free: 2.766 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.432e-05/0.3236, allocations: 11.94 kB / 1.025 GB, free: 2.754 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001019/0.3237, allocations: 120.2 kB / 1.025 GB, free: 2.637 MB / 0.795 GB Notification: Performance of sort global known variables: time 9e-08/0.3237, allocations: 0 / 1.025 GB, free: 2.637 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003726/0.3241, allocations: 36 kB / 1.025 GB, free: 2.602 MB / 0.795 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.0005596/0.3246, allocations: 211.8 kB / 1.026 GB, free: 2.426 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003919/0.325, allocations: 111.7 kB / 1.026 GB, free: 2.316 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3251, allocations: 0 / 1.026 GB, free: 2.316 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.3252, allocations: 64.47 kB / 1.026 GB, free: 2.254 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003815/0.3256, allocations: 19.98 kB / 1.026 GB, free: 2.234 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006139/0.3263, allocations: 269.5 kB / 1.026 GB, free: 1.938 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000364/0.3266, allocations: 0.7119 MB / 1.027 GB, free: 1.199 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.208e-05/0.3267, allocations: 19.38 kB / 1.027 GB, free: 1.18 MB / 0.795 GB Notification: Performance of SimCode: time 2.1e-07/0.3267, allocations: 0 / 1.027 GB, free: 1.18 MB / 0.795 GB Notification: Performance of Templates: time 0.005354/0.332, allocations: 2.065 MB / 1.029 GB, free: 15.12 MB / 0.8106 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/jenkins1/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