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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009684/0.0009685, allocations: 98.09 kB / 16.02 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 182.1 kB / 16.92 MB, free: 6.918 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.382/1.382, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.478/2.478, allocations: 390.9 MB / 0.667 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003798/0.0003798, allocations: 8 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7459/0.7463, allocations: 142.4 MB / 0.9557 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001576/0.7479, allocations: 1.289 MB / 0.957 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001149/0.7491, allocations: 0.6859 MB / 0.9576 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.918e-05/0.7491, allocations: 1.188 kB / 0.9576 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.7493, allocations: 15.92 kB / 0.9577 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.833e-05/0.7493, allocations: 15.16 kB / 0.9577 GB, free: 6.18 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0004383/0.7498, allocations: 96.22 kB / 0.9578 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000161/0.7499, allocations: 125.2 kB / 0.9579 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.7501, allocations: 47.11 kB / 0.9579 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.057e-05/0.7502, allocations: 48.11 kB / 0.958 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.813e-05/0.7503, allocations: 56.52 kB / 0.958 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.922e-05/0.7503, allocations: 4.719 kB / 0.958 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.7504, allocations: 43.88 kB / 0.9581 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.906e-05/0.7505, allocations: 27.19 kB / 0.9581 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.854e-05/0.7505, allocations: 76.8 kB / 0.9582 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.7507, allocations: 109.8 kB / 0.9583 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.7507, allocations: 7.938 kB / 0.9583 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.894e-06/0.7507, allocations: 0 / 0.9583 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.7507, allocations: 1.875 kB / 0.9583 GB, free: 5.754 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.0007286/0.7515, allocations: 0.5344 MB / 0.9588 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.7515, allocations: 9.406 kB / 0.9588 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.374e-05/0.7516, allocations: 13.88 kB / 0.9588 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.7517, allocations: 219.3 kB / 0.959 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.7518, allocations: 7.656 kB / 0.959 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.7518, allocations: 7.344 kB / 0.959 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003107/0.7521, allocations: 141.3 kB / 0.9592 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.7521, allocations: 0.875 kB / 0.9592 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/0.7522, allocations: 5.281 kB / 0.9592 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.7522, allocations: 1.812 kB / 0.9592 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000254/0.7524, allocations: 86.22 kB / 0.9593 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005532/0.753, allocations: 474.3 kB / 0.9597 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/0.7532, allocations: 85.47 kB / 0.9598 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.7534, allocations: 54.03 kB / 0.9599 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.7534, allocations: 1.688 kB / 0.9599 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002754/0.7537, allocations: 163.9 kB / 0.96 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.7537, allocations: 0 / 0.96 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0005682/0.7543, allocations: 212.2 kB / 0.9602 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.309e-05/0.7543, allocations: 79.86 kB / 0.9603 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.7544, allocations: 167.6 kB / 0.9605 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.836e-05/0.7544, allocations: 28.45 kB / 0.9605 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.503e-05/0.7545, allocations: 115.1 kB / 0.9606 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.904e-05/0.7545, allocations: 21.22 kB / 0.9606 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.773e-05/0.7546, allocations: 21.83 kB / 0.9606 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.275e-05/0.7546, allocations: 329.5 kB / 0.9609 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.7548, allocations: 47.47 kB / 0.961 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.7549, allocations: 125.8 kB / 0.9611 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002823/0.7552, allocations: 162.9 kB / 0.9613 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.7552, allocations: 0 / 0.9613 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003528/0.7556, allocations: 182.8 kB / 0.9614 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.7556, allocations: 5.875 kB / 0.9614 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.7556, allocations: 2.75 kB / 0.9615 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.7556, allocations: 2.984 kB / 0.9615 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.7558, allocations: 21.67 kB / 0.9615 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.7558, allocations: 10.67 kB / 0.9615 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.7559, allocations: 24.44 kB / 0.9615 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.7559, allocations: 5.312 kB / 0.9615 GB, free: 2.926 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 9.422e-05/0.756, allocations: 141.2 kB / 0.9616 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.57e-05/0.756, allocations: 14.72 kB / 0.9617 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.608e-05/0.7561, allocations: 22.36 kB / 0.9617 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.7561, allocations: 2 kB / 0.9617 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.7561, allocations: 0 / 0.9617 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.7561, allocations: 4.938 kB / 0.9617 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006282/0.7568, allocations: 0.546 MB / 0.9622 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.7568, allocations: 5 kB / 0.9622 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.852e-05/0.7569, allocations: 16.36 kB / 0.9622 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.7569, allocations: 4.75 kB / 0.9622 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.7569, allocations: 5.5 kB / 0.9623 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.7569, allocations: 0.75 kB / 0.9623 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.7569, allocations: 0.7812 kB / 0.9623 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004132/0.7573, allocations: 335.1 kB / 0.9626 GB, free: 1.992 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.856e-05/0.7574, allocations: 92.92 kB / 0.9627 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.7574, allocations: 9.938 kB / 0.9627 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.7576, allocations: 22.39 kB / 0.9627 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.447e-05/0.7576, allocations: 12.14 kB / 0.9627 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.533e-05/0.7577, allocations: 10.23 kB / 0.9627 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.521e-05/0.7577, allocations: 122.9 kB / 0.9628 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7577, allocations: 1.062 kB / 0.9628 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003594/0.7581, allocations: 35.84 kB / 0.9629 GB, free: 1.754 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.0004206/0.7585, allocations: 219.8 kB / 0.9631 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003759/0.7589, allocations: 120.3 kB / 0.9632 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.7589, allocations: 0 / 0.9632 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001729/0.7591, allocations: 60.53 kB / 0.9632 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.7595, allocations: 25.58 kB / 0.9633 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004817/0.76, allocations: 315.5 kB / 0.9636 GB, free: 1.258 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001482/0.7601, allocations: 0.7145 MB / 0.9643 GB, free: 0.543 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.767e-05/0.7602, allocations: 15.41 kB / 0.9643 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.7602, allocations: 0 / 0.9643 GB, free: 0.5352 MB / 0.7169 GB Notification: Performance of Templates: time 0.004151/0.7643, allocations: 2.04 MB / 0.9663 GB, free: 15.48 MB / 0.7325 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/jenkins1/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