Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001456/0.001456, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001441/0.001442, allocations: 191.7 kB / 16.13 MB, free: 6.691 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.418/1.418, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.447/2.447, allocations: 390.2 MB / 0.6642 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 67.89 kB / 0.8118 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8218/0.8232, allocations: 140.4 MB / 0.9489 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002634/0.8259, allocations: 1.636 MB / 0.9505 GB, free: 7.945 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001158/0.8271, allocations: 0.6919 MB / 0.9512 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.666e-05/0.8271, allocations: 5.312 kB / 0.9512 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.294e-05/0.8272, allocations: 11.92 kB / 0.9512 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.914e-05/0.8273, allocations: 18.7 kB / 0.9512 GB, free: 7.383 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.0003748/0.8277, allocations: 95.98 kB / 0.9513 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001382/0.8278, allocations: 125.6 kB / 0.9514 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.828, allocations: 35.08 kB / 0.9515 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.517e-05/0.828, allocations: 60.39 kB / 0.9515 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.718e-05/0.8281, allocations: 54.69 kB / 0.9516 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.8281, allocations: 6.656 kB / 0.9516 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.8282, allocations: 53.36 kB / 0.9516 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.804e-05/0.8283, allocations: 27.22 kB / 0.9517 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.047e-05/0.8284, allocations: 51.22 kB / 0.9517 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000194/0.8286, allocations: 160.1 kB / 0.9519 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.8286, allocations: 3.938 kB / 0.9519 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.954e-06/0.8286, allocations: 5.406 kB / 0.9519 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.8286, allocations: 0 / 0.9519 GB, free: 6.949 MB / 0.7169 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.0007615/0.8294, allocations: 0.5425 MB / 0.9524 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.8294, allocations: 9 kB / 0.9524 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.351e-05/0.8295, allocations: 20.59 kB / 0.9524 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000155/0.8297, allocations: 225.1 kB / 0.9526 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.8297, allocations: 3.188 kB / 0.9526 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.8297, allocations: 11.45 kB / 0.9527 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.83, allocations: 133.8 kB / 0.9528 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.83, allocations: 0 / 0.9528 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.83, allocations: 1.906 kB / 0.9528 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.83, allocations: 1.188 kB / 0.9528 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000233/0.8303, allocations: 74 kB / 0.9529 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005148/0.8308, allocations: 466.1 kB / 0.9533 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/0.831, allocations: 82.91 kB / 0.9534 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.8311, allocations: 42.88 kB / 0.9534 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.8312, allocations: 10.36 kB / 0.9534 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002586/0.8314, allocations: 143.8 kB / 0.9536 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.8314, allocations: 0 / 0.9536 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.000534/0.832, allocations: 190 kB / 0.9538 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.184e-05/0.832, allocations: 91.5 kB / 0.9538 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.8321, allocations: 155.9 kB / 0.954 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.8321, allocations: 32.17 kB / 0.954 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.228e-05/0.8322, allocations: 111.2 kB / 0.9541 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.153e-05/0.8322, allocations: 36.47 kB / 0.9542 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.023e-05/0.8323, allocations: 30.34 kB / 0.9542 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.676e-05/0.8323, allocations: 334.2 kB / 0.9545 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.8325, allocations: 36.59 kB / 0.9545 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.8326, allocations: 119.2 kB / 0.9547 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/0.8329, allocations: 148.5 kB / 0.9548 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.8329, allocations: 0 / 0.9548 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003216/0.8332, allocations: 164.9 kB / 0.955 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.8333, allocations: 6 kB / 0.955 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.8333, allocations: 2.312 kB / 0.955 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.8333, allocations: 3.688 kB / 0.955 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.8334, allocations: 18.3 kB / 0.955 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.8334, allocations: 2.625 kB / 0.955 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.071e-05/0.8335, allocations: 20.73 kB / 0.955 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.8335, allocations: 9.281 kB / 0.955 GB, free: 4.109 MB / 0.7169 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 8.672e-05/0.8336, allocations: 140.9 kB / 0.9551 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.522e-05/0.8336, allocations: 19.06 kB / 0.9552 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.311e-05/0.8337, allocations: 13.84 kB / 0.9552 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.8337, allocations: 6.891 kB / 0.9552 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.8337, allocations: 0 / 0.9552 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.8337, allocations: 5 kB / 0.9552 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005436/0.8343, allocations: 0.5327 MB / 0.9557 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.8343, allocations: 1.344 kB / 0.9557 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.802e-05/0.8343, allocations: 11.86 kB / 0.9557 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.8344, allocations: 5.969 kB / 0.9557 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.8344, allocations: 1.219 kB / 0.9557 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.8344, allocations: 1.469 kB / 0.9557 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.8344, allocations: 1.469 kB / 0.9557 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003163/0.8347, allocations: 327.9 kB / 0.956 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.479e-05/0.8347, allocations: 91.98 kB / 0.9561 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.8348, allocations: 7.922 kB / 0.9561 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.8349, allocations: 22.95 kB / 0.9562 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.505e-05/0.835, allocations: 7.297 kB / 0.9562 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/0.835, allocations: 12.98 kB / 0.9562 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.397e-05/0.8351, allocations: 118.9 kB / 0.9563 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8351, allocations: 0 / 0.9563 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003332/0.8354, allocations: 40.97 kB / 0.9563 GB, free: 2.938 MB / 0.7169 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.0003721/0.8358, allocations: 199.8 kB / 0.9565 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003238/0.8362, allocations: 113.3 kB / 0.9566 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.8362, allocations: 1.375 kB / 0.9566 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001471/0.8363, allocations: 51.56 kB / 0.9567 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.8367, allocations: 23.06 kB / 0.9567 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004368/0.8371, allocations: 291.4 kB / 0.957 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.8373, allocations: 0.715 MB / 0.9577 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.306e-05/0.8374, allocations: 20.5 kB / 0.9577 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.91e-05/0.8374, allocations: 14.75 kB / 0.9577 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of SimCode: time 1.8e-07/0.8374, allocations: 4.188 kB / 0.9577 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of Templates: time 0.005005/0.8424, allocations: 1.649 MB / 0.9593 GB, free: 0.9297 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches