Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001434/0.001435, allocations: 103 kB / 16.36 MB, free: 6.336 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.001582/0.001582, allocations: 198.3 kB / 17.3 MB, free: 5.883 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.313/1.313, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.432/2.432, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 67.94 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2718, allocations: 153 MB / 1.027 GB, free: 2.082 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003094/0.275, allocations: 1.593 MB / 1.028 GB, free: 496 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001285/0.2763, allocations: 0.705 MB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.843e-05/0.2764, allocations: 3.938 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.2765, allocations: 11.86 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.673e-05/0.2766, allocations: 23.8 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.0005204/0.2772, allocations: 111.7 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002085/0.2774, allocations: 131.6 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.2776, allocations: 29.11 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.2777, allocations: 59.77 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.94e-05/0.2778, allocations: 71.67 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.66e-05/0.2778, allocations: 12 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001307/0.2779, allocations: 43.98 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.439e-05/0.278, allocations: 35.89 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.5e-05/0.2781, allocations: 59.66 kB / 1.03 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002452/0.2783, allocations: 171.4 kB / 1.03 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2783, allocations: 3.938 kB / 1.03 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.773e-06/0.2784, allocations: 0 / 1.03 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.299e-05/0.2784, allocations: 0 / 1.03 GB, free: 15.02 MB / 0.8106 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.0008623/0.2792, allocations: 0.5468 MB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.2793, allocations: 12.03 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.832e-05/0.2794, allocations: 16.75 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002092/0.2796, allocations: 209.1 kB / 1.03 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/0.2796, allocations: 8.375 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.794e-05/0.2796, allocations: 8.375 kB / 1.03 GB, free: 14.12 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003099/0.2799, allocations: 150.2 kB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.28, allocations: 0 / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.28, allocations: 8 kB / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.28, allocations: 0 / 1.031 GB, free: 13.95 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002373/0.2802, allocations: 67.94 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006338/0.2809, allocations: 468.6 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001852/0.2811, allocations: 81.19 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.2812, allocations: 49.75 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.317e-05/0.2812, allocations: 4 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003275/0.2816, allocations: 152.9 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 1.382e-06/0.2816, allocations: 0 / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.0005423/0.2821, allocations: 185.4 kB / 1.032 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.2822, allocations: 77.11 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001383/0.2823, allocations: 166.4 kB / 1.032 GB, free: 12.6 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.2824, allocations: 33.7 kB / 1.032 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.952e-05/0.2824, allocations: 112.3 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.02e-05/0.2825, allocations: 23.7 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.854e-05/0.2825, allocations: 33.7 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.2827, allocations: 330.8 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.2828, allocations: 43.89 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.283, allocations: 122.3 kB / 1.032 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002742/0.2832, allocations: 147.5 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2833, allocations: 0 / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000344/0.2836, allocations: 165.2 kB / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.2836, allocations: 8.375 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.2836, allocations: 4.266 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.2837, allocations: 8 kB / 1.033 GB, free: 11.49 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.969e-05/0.2838, allocations: 15.98 kB / 1.033 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.2838, allocations: 3.938 kB / 1.033 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.838e-05/0.2839, allocations: 23.86 kB / 1.033 GB, free: 11.45 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.2839, allocations: 8 kB / 1.033 GB, free: 11.44 MB / 0.8106 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.0001123/0.284, allocations: 130.6 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.945e-05/0.2841, allocations: 15.81 kB / 1.033 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.502e-05/0.2841, allocations: 25.39 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.2841, allocations: 0 / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.2841, allocations: 0 / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.2841, allocations: 3.938 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006482/0.2848, allocations: 0.5251 MB / 1.034 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2848, allocations: 4 kB / 1.034 GB, free: 10.67 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.219e-05/0.2849, allocations: 15.98 kB / 1.034 GB, free: 10.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.2849, allocations: 3.938 kB / 1.034 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.2849, allocations: 4.047 kB / 1.034 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/0.2849, allocations: 11.92 kB / 1.034 GB, free: 10.64 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2849, allocations: 3.984 kB / 1.034 GB, free: 10.63 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003791/0.2853, allocations: 318.5 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.807e-05/0.2854, allocations: 92.95 kB / 1.034 GB, free: 10.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.279e-05/0.2854, allocations: 7.938 kB / 1.034 GB, free: 10.19 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001787/0.2856, allocations: 15.97 kB / 1.034 GB, free: 10.17 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.22e-05/0.2857, allocations: 15.98 kB / 1.034 GB, free: 10.16 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.202e-05/0.2857, allocations: 4 kB / 1.034 GB, free: 10.15 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.71e-05/0.2858, allocations: 124.2 kB / 1.034 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.2e-07/0.2858, allocations: 0 / 1.034 GB, free: 10.03 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000342/0.2861, allocations: 43.98 kB / 1.034 GB, free: 9.988 MB / 0.8106 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.0003901/0.2865, allocations: 200.5 kB / 1.034 GB, free: 9.82 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003371/0.2869, allocations: 108.3 kB / 1.034 GB, free: 9.715 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2869, allocations: 64 / 1.034 GB, free: 9.715 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.287, allocations: 59.89 kB / 1.035 GB, free: 9.656 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.2874, allocations: 20 kB / 1.035 GB, free: 9.637 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004626/0.2879, allocations: 235.8 kB / 1.035 GB, free: 9.375 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.2882, allocations: 0.7196 MB / 1.035 GB, free: 8.629 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.718e-05/0.2882, allocations: 20.53 kB / 1.035 GB, free: 8.609 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.999e-05/0.2883, allocations: 15.44 kB / 1.035 GB, free: 8.598 MB / 0.8106 GB Notification: Performance of SimCode: time 2.41e-07/0.2883, allocations: 0 / 1.035 GB, free: 8.598 MB / 0.8106 GB Notification: Performance of Templates: time 0.005199/0.2935, allocations: 1.781 MB / 1.037 GB, free: 6.832 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches