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.001115/0.001115, allocations: 104.1 kB / 16.35 MB, free: 5.879 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.001144/0.001144, allocations: 194.2 kB / 17.3 MB, free: 5.52 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.287/1.287, allocations: 222.9 MB / 241 MB, free: 15.17 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.424/2.424, allocations: 437.1 MB / 0.7112 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001997, allocations: 69.14 kB / 0.8707 GB, free: 1.418 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2737, 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.002712/0.2765, allocations: 1.582 MB / 1.02 GB, free: 8.23 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001286/0.2778, allocations: 0.7105 MB / 1.021 GB, free: 7.516 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.542e-05/0.2778, allocations: 4 kB / 1.021 GB, free: 7.512 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 9.797e-05/0.2779, allocations: 11.81 kB / 1.021 GB, free: 7.5 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.112e-05/0.2781, allocations: 27.78 kB / 1.021 GB, free: 7.473 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.0004528/0.2785, allocations: 99.7 kB / 1.021 GB, free: 7.375 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001957/0.2787, allocations: 135.6 kB / 1.021 GB, free: 7.242 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.2789, allocations: 41.09 kB / 1.021 GB, free: 7.199 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001009/0.279, allocations: 55.77 kB / 1.021 GB, free: 7.145 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.989e-05/0.2791, allocations: 63.69 kB / 1.021 GB, free: 7.082 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.2791, allocations: 12 kB / 1.021 GB, free: 7.07 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001312/0.2793, allocations: 55.95 kB / 1.021 GB, free: 7.016 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.715e-05/0.2793, allocations: 31.91 kB / 1.022 GB, free: 6.984 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.913e-05/0.2794, allocations: 55.66 kB / 1.022 GB, free: 6.93 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002431/0.2797, allocations: 171.5 kB / 1.022 GB, free: 6.762 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.2797, allocations: 0 / 1.022 GB, free: 6.762 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2797, allocations: 3.938 kB / 1.022 GB, free: 6.758 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.2797, 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.0008137/0.2805, allocations: 0.5429 MB / 1.022 GB, free: 6.148 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.2805, allocations: 8.922 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.712e-05/0.2806, allocations: 16.75 kB / 1.022 GB, free: 6.125 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001986/0.2808, allocations: 217.1 kB / 1.023 GB, free: 5.875 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.2808, allocations: 8.375 kB / 1.023 GB, free: 5.867 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.2809, allocations: 8.375 kB / 1.023 GB, free: 5.859 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003165/0.2812, allocations: 140.3 kB / 1.023 GB, free: 5.711 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.2812, allocations: 0 / 1.023 GB, free: 5.711 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.2812, allocations: 4 kB / 1.023 GB, free: 5.707 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.2812, allocations: 3.984 kB / 1.023 GB, free: 5.703 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000237/0.2815, allocations: 67.94 kB / 1.023 GB, free: 5.637 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006517/0.2821, allocations: 468.6 kB / 1.023 GB, free: 5.125 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001959/0.2824, allocations: 85.17 kB / 1.023 GB, free: 5.023 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.2825, allocations: 53.75 kB / 1.023 GB, free: 4.965 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.2825, allocations: 0 / 1.023 GB, free: 4.965 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000308/0.2828, allocations: 141 kB / 1.023 GB, free: 4.809 MB / 0.795 GB Notification: Performance of pre-optimization done (n=12): time 1.372e-06/0.2829, allocations: 4 kB / 1.023 GB, free: 4.805 MB / 0.795 GB Notification: Performance of matching and sorting (n=12): time 0.0005647/0.2834, allocations: 185.4 kB / 1.024 GB, free: 4.617 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/0.2835, allocations: 85.09 kB / 1.024 GB, free: 4.516 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.2836, allocations: 162.4 kB / 1.024 GB, free: 4.348 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.366e-05/0.2836, allocations: 29.7 kB / 1.024 GB, free: 4.312 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.317e-05/0.2837, allocations: 112.3 kB / 1.024 GB, free: 4.195 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.109e-05/0.2837, allocations: 23.7 kB / 1.024 GB, free: 4.172 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.914e-05/0.2838, allocations: 41.7 kB / 1.024 GB, free: 4.125 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.889e-05/0.2839, allocations: 326.8 kB / 1.024 GB, free: 3.797 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001298/0.2841, allocations: 39.91 kB / 1.024 GB, free: 3.758 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.2842, allocations: 122.2 kB / 1.025 GB, free: 3.602 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000282/0.2845, allocations: 143.6 kB / 1.025 GB, free: 3.434 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.2845, allocations: 3.938 kB / 1.025 GB, free: 3.43 MB / 0.795 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003578/0.2849, allocations: 169.2 kB / 1.025 GB, free: 3.258 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.2849, allocations: 4 kB / 1.025 GB, free: 3.254 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2849, allocations: 4 kB / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.285, allocations: 0 / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.2851, allocations: 20.27 kB / 1.025 GB, free: 3.23 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.2851, allocations: 4 kB / 1.025 GB, free: 3.227 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.2852, allocations: 19.92 kB / 1.025 GB, free: 3.207 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.672e-05/0.2852, allocations: 11.98 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 0.0001017/0.2853, allocations: 134.7 kB / 1.025 GB, free: 3.055 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.328e-05/0.2854, allocations: 19.8 kB / 1.025 GB, free: 3.035 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.385e-05/0.2854, allocations: 21.39 kB / 1.025 GB, free: 3.02 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.2854, allocations: 4 kB / 1.025 GB, free: 3.016 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.2854, allocations: 4 kB / 1.025 GB, free: 3.012 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2854, allocations: 3.938 kB / 1.025 GB, free: 3.008 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006756/0.2861, allocations: 0.533 MB / 1.026 GB, free: 2.418 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.2861, allocations: 0 / 1.026 GB, free: 2.418 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.465e-05/0.2862, allocations: 11.98 kB / 1.026 GB, free: 2.406 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.2862, allocations: 7.938 kB / 1.026 GB, free: 2.398 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.2862, allocations: 8 kB / 1.026 GB, free: 2.391 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.2862, allocations: 0 / 1.026 GB, free: 2.391 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2863, allocations: 3.938 kB / 1.026 GB, free: 2.387 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003869/0.2866, allocations: 314.6 kB / 1.026 GB, free: 2.062 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.73e-05/0.2867, allocations: 96.84 kB / 1.026 GB, free: 1.949 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.2867, allocations: 7.938 kB / 1.026 GB, free: 1.941 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.2869, allocations: 15.98 kB / 1.026 GB, free: 1.926 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.341e-05/0.287, allocations: 11.98 kB / 1.026 GB, free: 1.914 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-05/0.287, allocations: 11.98 kB / 1.026 GB, free: 1.902 MB / 0.795 GB Notification: Performance of sorting global known variables: time 7.892e-05/0.2871, allocations: 120.2 kB / 1.026 GB, free: 1.785 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2871, allocations: 0 / 1.026 GB, free: 1.785 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003565/0.2875, allocations: 40 kB / 1.026 GB, free: 1.746 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.0003863/0.2879, allocations: 204.8 kB / 1.026 GB, free: 1.574 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003436/0.2882, allocations: 107.8 kB / 1.027 GB, free: 1.469 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2882, allocations: 0 / 1.027 GB, free: 1.469 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.2884, allocations: 52.53 kB / 1.027 GB, free: 1.418 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000381/0.2888, allocations: 26.45 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.0004457/0.2892, allocations: 243.7 kB / 1.027 GB, free: 1.129 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002556/0.2895, allocations: 0.7158 MB / 1.028 GB, free: 396 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 7.562e-05/0.2896, allocations: 24.47 kB / 1.028 GB, free: 372 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.341e-05/0.2896, allocations: 15.44 kB / 1.028 GB, free: 356 kB / 0.795 GB Notification: Performance of SimCode: time 3.21e-07/0.2896, allocations: 0 / 1.028 GB, free: 356 kB / 0.795 GB Notification: Performance of Templates: time 0.005093/0.2947, allocations: 1.782 MB / 1.029 GB, free: 14.58 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 gbode -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