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.001605/0.001605, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002136/0.002136, allocations: 193.7 kB / 16.25 MB, free: 6.637 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.565/1.565, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.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.88/2.88, allocations: 437 MB / 0.7101 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001988/0.001988, allocations: 63.89 kB / 0.8687 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6094/0.6114, allocations: 151.6 MB / 1.017 GB, free: 2.73 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003192/0.6146, allocations: 1.647 MB / 1.018 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001395/0.616, allocations: 0.6936 MB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.715e-05/0.6161, allocations: 3.938 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.6162, allocations: 11.86 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.612e-05/0.6163, allocations: 19.86 kB / 1.019 GB, free: 348 kB / 0.7637 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.0004724/0.6168, allocations: 87.84 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002166/0.617, allocations: 143.5 kB / 1.019 GB, free: 116 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.6172, allocations: 37.02 kB / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.705e-05/0.6173, allocations: 55.77 kB / 1.019 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.6174, allocations: 63.83 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.6174, allocations: 12 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.6175, allocations: 51.83 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.401e-05/0.6176, allocations: 27.91 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.329e-05/0.6177, allocations: 59.66 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002424/0.6179, allocations: 169.5 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.6179, allocations: 0 / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.263e-06/0.618, allocations: 4 kB / 1.02 GB, free: 15.64 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.618, allocations: 0 / 1.02 GB, free: 15.64 MB / 0.7794 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.0008908/0.6189, allocations: 0.5428 MB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.6189, allocations: 8.031 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.924e-05/0.619, allocations: 24.75 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.6192, allocations: 216 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.6192, allocations: 8.375 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.21e-05/0.6193, allocations: 4.375 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003473/0.6196, allocations: 135.6 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.6196, allocations: 0 / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.6196, allocations: 4 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.6197, allocations: 4 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002546/0.6199, allocations: 75.81 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006812/0.6206, allocations: 460.8 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.6208, allocations: 81.11 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001384/0.621, allocations: 49.75 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.951e-05/0.621, allocations: 7.984 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003227/0.6214, allocations: 149 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 3.918e-06/0.6214, allocations: 3.984 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005938/0.622, allocations: 193.3 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.575e-05/0.622, allocations: 77.11 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.6222, allocations: 163.3 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.6222, allocations: 29.7 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.372e-05/0.6223, allocations: 116.2 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.758e-05/0.6224, allocations: 27.7 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.247e-05/0.6224, allocations: 33.7 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.6226, allocations: 330.8 kB / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.6228, allocations: 35.97 kB / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001997/0.623, allocations: 118.3 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003141/0.6233, allocations: 147.5 kB / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.6233, allocations: 0 / 1.023 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003992/0.6237, allocations: 165.3 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.6237, allocations: 8 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.6237, allocations: 0 / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.6238, allocations: 4 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.6239, allocations: 19.92 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.6239, allocations: 3.984 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.624, allocations: 15.94 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.624, allocations: 12.19 kB / 1.023 GB, free: 12.08 MB / 0.7794 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.0001408/0.6242, allocations: 142.2 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.938e-05/0.6242, allocations: 11.81 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.176e-05/0.6243, allocations: 25.39 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.6243, allocations: 0 / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.6243, allocations: 0 / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.413e-06/0.6243, allocations: 3.938 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007714/0.6251, allocations: 0.5369 MB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.748e-06/0.6251, allocations: 4.094 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.774e-05/0.6252, allocations: 19.92 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.073e-05/0.6252, allocations: 3.938 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.6252, allocations: 0 / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.6252, allocations: 4 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.6252, allocations: 0 / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004638/0.6257, allocations: 322.6 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.952e-05/0.6258, allocations: 88.92 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.475e-05/0.6258, allocations: 3.938 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.626, allocations: 23.98 kB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.285e-05/0.6261, allocations: 11.98 kB / 1.024 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-05/0.6261, allocations: 7.984 kB / 1.024 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.944e-05/0.6262, allocations: 124.8 kB / 1.024 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6262, allocations: 0 / 1.024 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003825/0.6266, allocations: 36 kB / 1.024 GB, free: 10.62 MB / 0.7794 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.0007794/0.6274, allocations: 211.8 kB / 1.024 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004593/0.6279, allocations: 119.8 kB / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.6279, allocations: 0 / 1.025 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.6281, allocations: 51.91 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004275/0.6285, allocations: 16.73 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007171/0.6293, allocations: 287.7 kB / 1.025 GB, free: 9.957 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004907/0.6298, allocations: 0.7158 MB / 1.026 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.634e-05/0.6299, allocations: 20.53 kB / 1.026 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.521e-05/0.6299, allocations: 15.44 kB / 1.026 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of SimCode: time 3.41e-07/0.6299, allocations: 4 kB / 1.026 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of Templates: time 0.0065/0.6364, allocations: 1.707 MB / 1.027 GB, free: 7.484 MB / 0.7794 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=400 -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/jenkins/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