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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009449/0.0009449, allocations: 106.9 kB / 16.37 MB, free: 6.477 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.0009334/0.0009335, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.172/1.172, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.197/2.197, allocations: 437.1 MB / 0.7112 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 56.09 kB / 0.8707 GB, free: 1.418 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2544, allocations: 151.6 MB / 1.019 GB, free: 9.828 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002352/0.2568, allocations: 1.581 MB / 1.02 GB, free: 8.23 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001038/0.2578, allocations: 0.7105 MB / 1.021 GB, free: 7.516 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.373e-05/0.2579, allocations: 3.938 kB / 1.021 GB, free: 7.512 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 9.136e-05/0.258, allocations: 11.86 kB / 1.021 GB, free: 7.5 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.452e-05/0.2581, allocations: 19.75 kB / 1.021 GB, free: 7.48 MB / 0.795 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0003508/0.2584, allocations: 111.7 kB / 1.021 GB, free: 7.371 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001587/0.2586, allocations: 135.6 kB / 1.021 GB, free: 7.238 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.2587, allocations: 33.11 kB / 1.021 GB, free: 7.203 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.285e-05/0.2588, allocations: 51.78 kB / 1.021 GB, free: 7.152 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 7.978e-05/0.2589, allocations: 71.67 kB / 1.021 GB, free: 7.082 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.944e-05/0.2589, allocations: 8 kB / 1.021 GB, free: 7.074 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.259, allocations: 55.97 kB / 1.022 GB, free: 7.02 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 4.338e-05/0.2591, allocations: 27.91 kB / 1.022 GB, free: 6.992 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 6.363e-05/0.2591, allocations: 63.66 kB / 1.022 GB, free: 6.93 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.2593, allocations: 175.3 kB / 1.022 GB, free: 6.758 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.2593, allocations: 0 / 1.022 GB, free: 6.758 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2593, allocations: 0 / 1.022 GB, free: 6.758 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.2593, allocations: 0 / 1.022 GB, free: 6.758 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.000699/0.26, allocations: 0.539 MB / 1.022 GB, free: 6.152 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.2601, allocations: 8.625 kB / 1.022 GB, free: 6.145 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.958e-05/0.2601, allocations: 20.75 kB / 1.022 GB, free: 6.125 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001794/0.2603, allocations: 221 kB / 1.023 GB, free: 5.871 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.2603, allocations: 4.375 kB / 1.023 GB, free: 5.867 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.2604, allocations: 8.375 kB / 1.023 GB, free: 5.859 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.2606, allocations: 140.2 kB / 1.023 GB, free: 5.711 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.2606, allocations: 0 / 1.023 GB, free: 5.711 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.2607, allocations: 0 / 1.023 GB, free: 5.711 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.2607, allocations: 4 kB / 1.023 GB, free: 5.707 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002117/0.2609, allocations: 63.94 kB / 1.023 GB, free: 5.645 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005308/0.2614, allocations: 468.7 kB / 1.023 GB, free: 5.133 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001791/0.2616, allocations: 85.16 kB / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.2617, allocations: 53.75 kB / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.2618, allocations: 4 kB / 1.023 GB, free: 4.969 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002461/0.262, allocations: 144.9 kB / 1.023 GB, free: 4.809 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.262, allocations: 3.938 kB / 1.023 GB, free: 4.805 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0004835/0.2625, allocations: 185.5 kB / 1.024 GB, free: 4.617 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.2626, allocations: 85.05 kB / 1.024 GB, free: 4.516 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.2627, allocations: 158.4 kB / 1.024 GB, free: 4.352 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.434e-05/0.2627, allocations: 37.69 kB / 1.024 GB, free: 4.309 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 5.697e-05/0.2628, allocations: 116.3 kB / 1.024 GB, free: 4.188 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.423e-05/0.2628, allocations: 23.72 kB / 1.024 GB, free: 4.164 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.838e-05/0.2629, allocations: 33.7 kB / 1.024 GB, free: 4.125 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.057e-05/0.263, allocations: 330.8 kB / 1.024 GB, free: 3.793 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.2631, allocations: 35.91 kB / 1.024 GB, free: 3.758 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.2632, allocations: 124.2 kB / 1.025 GB, free: 3.602 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002435/0.2635, allocations: 147.5 kB / 1.025 GB, free: 3.43 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2635, allocations: 0 / 1.025 GB, free: 3.43 MB / 0.795 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003092/0.2638, allocations: 165.2 kB / 1.025 GB, free: 3.262 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.2638, allocations: 4 kB / 1.025 GB, free: 3.258 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.2638, allocations: 4 kB / 1.025 GB, free: 3.254 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.2639, allocations: 7.984 kB / 1.025 GB, free: 3.246 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.958e-05/0.264, allocations: 16.27 kB / 1.025 GB, free: 3.23 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.264, allocations: 11.94 kB / 1.025 GB, free: 3.219 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.586e-05/0.2641, allocations: 15.92 kB / 1.025 GB, free: 3.203 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.2641, allocations: 8 kB / 1.025 GB, free: 3.195 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 9.294e-05/0.2642, allocations: 130.5 kB / 1.025 GB, free: 3.059 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.253e-05/0.2642, allocations: 11.81 kB / 1.025 GB, free: 3.047 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.605e-05/0.2642, allocations: 17.39 kB / 1.025 GB, free: 3.035 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2642, allocations: 4 kB / 1.025 GB, free: 3.031 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2643, allocations: 0 / 1.025 GB, free: 3.031 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2643, allocations: 7.938 kB / 1.025 GB, free: 3.023 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005807/0.2649, allocations: 0.537 MB / 1.026 GB, free: 2.43 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2649, allocations: 0 / 1.026 GB, free: 2.43 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.762e-05/0.2649, allocations: 15.98 kB / 1.026 GB, free: 2.414 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.2649, allocations: 3.938 kB / 1.026 GB, free: 2.41 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.265, allocations: 96 / 1.026 GB, free: 2.41 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.265, allocations: 15.88 kB / 1.026 GB, free: 2.395 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.265, allocations: 3.984 kB / 1.026 GB, free: 2.391 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003364/0.2653, allocations: 310.6 kB / 1.026 GB, free: 2.07 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.964e-05/0.2654, allocations: 92.86 kB / 1.026 GB, free: 1.961 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.897e-05/0.2654, allocations: 8.219 kB / 1.026 GB, free: 1.953 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.2656, allocations: 23.97 kB / 1.026 GB, free: 1.93 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.284e-05/0.2656, allocations: 7.984 kB / 1.026 GB, free: 1.922 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.02e-05/0.2657, allocations: 12 kB / 1.026 GB, free: 1.91 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.792e-05/0.2657, allocations: 120.2 kB / 1.026 GB, free: 1.793 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2657, allocations: 0 / 1.026 GB, free: 1.793 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003011/0.266, allocations: 39.98 kB / 1.026 GB, free: 1.754 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.000339/0.2664, allocations: 208.2 kB / 1.026 GB, free: 1.582 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003027/0.2667, allocations: 115.7 kB / 1.027 GB, free: 1.469 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2667, allocations: 0 / 1.027 GB, free: 1.469 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.2669, allocations: 60.44 kB / 1.027 GB, free: 1.41 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003836/0.2672, allocations: 16 kB / 1.027 GB, free: 1.395 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003716/0.2676, allocations: 239.8 kB / 1.027 GB, free: 1.133 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000227/0.2679, allocations: 0.7121 MB / 1.028 GB, free: 404 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 5.507e-05/0.2679, allocations: 24.53 kB / 1.028 GB, free: 380 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.86e-05/0.268, allocations: 23.38 kB / 1.028 GB, free: 356 kB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.268, allocations: 0 / 1.028 GB, free: 356 kB / 0.795 GB Notification: Performance of Templates: time 0.004387/0.2724, allocations: 1.77 MB / 1.029 GB, free: 14.59 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 -s cvode -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