Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0019/0.0019, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 216.9 kB / 22.24 MB, free: 4.855 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.556/1.556, allocations: 230.6 MB / 256 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.3/3.3, allocations: 0.4892 GB / 0.7943 GB, free: 35.47 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002085/0.002085, allocations: 65.17 kB / 1.153 GB, free: 25.93 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3297, allocations: 176.1 MB / 1.325 GB, free: 2.395 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003097/0.3328, allocations: 1.582 MB / 1.327 GB, free: 0.8047 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00156/0.3343, allocations: 0.7365 MB / 1.327 GB, free: 64 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.634e-05/0.3344, allocations: 3.938 kB / 1.327 GB, free: 60 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.3345, allocations: 19.81 kB / 1.327 GB, free: 40 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.08e-05/0.3346, allocations: 19.73 kB / 1.327 GB, free: 20 kB / 1.014 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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.0005552/0.3351, allocations: 111.7 kB / 1.327 GB, free: 15.91 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002159/0.3353, allocations: 143.5 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.3354, allocations: 21.58 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.3356, allocations: 51.84 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.3357, allocations: 67.67 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.44e-05/0.3357, allocations: 8 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001401/0.3358, allocations: 55.95 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 5.524e-05/0.3359, allocations: 31.86 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.179e-05/0.336, allocations: 55.7 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002635/0.3362, allocations: 163.3 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3362, allocations: 0 / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3362, allocations: 4 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.013e-06/0.3362, allocations: 4 kB / 1.328 GB, free: 15.31 MB / 1.029 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.0008789/0.3371, allocations: 486.6 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.3372, allocations: 8.031 kB / 1.329 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.222e-05/0.3372, allocations: 34.75 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.738e-05/0.3373, allocations: 24.81 kB / 1.329 GB, free: 14.71 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002157/0.3375, allocations: 166.2 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.3375, allocations: 4.375 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.123e-05/0.3375, allocations: 12.38 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003236/0.3378, allocations: 131.5 kB / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.3378, allocations: 0 / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.3379, allocations: 0 / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.3379, allocations: 0 / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002543/0.3381, allocations: 79.81 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007949/0.3389, allocations: 408 kB / 1.329 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002463/0.3392, allocations: 77.12 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000146/0.3393, allocations: 45.81 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/0.3393, allocations: 4 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003631/0.3397, allocations: 149 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.613e-06/0.3397, allocations: 0 / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0006477/0.3403, allocations: 189.4 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.104e-05/0.3404, allocations: 93.02 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001665/0.3406, allocations: 166.8 kB / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.321e-05/0.3406, allocations: 37.7 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.924e-05/0.3407, allocations: 108.3 kB / 1.33 GB, free: 12.9 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.593e-05/0.3408, allocations: 31.84 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.338e-05/0.3408, allocations: 33.7 kB / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.341, allocations: 322.8 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.3411, allocations: 35.97 kB / 1.331 GB, free: 12.47 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002726/0.3414, allocations: 193.8 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003803/0.3418, allocations: 151.5 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.3418, allocations: 4 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004154/0.3422, allocations: 165.5 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.3422, allocations: 11.94 kB / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3422, allocations: 0 / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.3423, allocations: 4 kB / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.3424, allocations: 24.2 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.487e-06/0.3424, allocations: 3.984 kB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.3425, allocations: 15.94 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.3426, allocations: 11.98 kB / 1.331 GB, free: 11.81 MB / 1.029 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.0001525/0.3427, allocations: 138.2 kB / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.804e-05/0.3427, allocations: 19.91 kB / 1.331 GB, free: 11.65 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.434e-05/0.3428, allocations: 17.39 kB / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3428, allocations: 0 / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3428, allocations: 0 / 1.331 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.3428, allocations: 12.17 kB / 1.331 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008367/0.3437, allocations: 0.4967 MB / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.3437, allocations: 0 / 1.332 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.061e-05/0.3437, allocations: 11.98 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.206e-06/0.3438, allocations: 7.938 kB / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.3438, allocations: 0 / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.3438, allocations: 480 / 1.332 GB, free: 11.05 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3438, allocations: 4 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004785/0.3443, allocations: 330.5 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.624e-05/0.3443, allocations: 19.78 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.334e-05/0.3443, allocations: 4 kB / 1.332 GB, free: 10.68 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.3445, allocations: 19.97 kB / 1.332 GB, free: 10.66 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.136e-05/0.3446, allocations: 11.98 kB / 1.332 GB, free: 10.65 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/0.3446, allocations: 4 kB / 1.332 GB, free: 10.64 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.945e-05/0.3447, allocations: 119.2 kB / 1.332 GB, free: 10.53 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3447, allocations: 4 kB / 1.332 GB, free: 10.52 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003711/0.3451, allocations: 39.92 kB / 1.332 GB, free: 10.48 MB / 1.029 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.001255/0.3463, allocations: 0.9527 MB / 1.333 GB, free: 9.543 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004019/0.3467, allocations: 108.2 kB / 1.333 GB, free: 9.438 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3467, allocations: 4.188 kB / 1.333 GB, free: 9.434 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001684/0.3469, allocations: 47.91 kB / 1.333 GB, free: 9.387 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.3473, allocations: 15.98 kB / 1.333 GB, free: 9.371 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/0.3499, allocations: 1.904 MB / 1.335 GB, free: 7.332 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001085/0.35, allocations: 94.28 kB / 1.335 GB, free: 7.219 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.098e-05/0.3501, allocations: 28.41 kB / 1.335 GB, free: 7.191 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.347e-05/0.3502, allocations: 39.42 kB / 1.335 GB, free: 7.152 MB / 1.029 GB Notification: Performance of SimCode: time 6.01e-07/0.3502, allocations: 0 / 1.335 GB, free: 7.152 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03091/0.3811, allocations: 4.068 MB / 1.339 GB, free: 3.254 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.05, allocations: 6.984 kB / 1.339 GB, free: 3.25 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.93539645895362]