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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001038/0.001038, allocations: 108 kB / 15.61 MB, free: 148 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.001019/0.001019, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.204/1.204, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.081/2.081, allocations: 390.2 MB / 0.6646 GB, free: 292 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 63.89 kB / 0.8125 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5837/0.5849, allocations: 140.4 MB / 0.9496 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002237/0.5872, allocations: 1.581 MB / 0.9511 GB, free: 7.973 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009877/0.5882, allocations: 0.6949 MB / 0.9518 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.045e-05/0.5882, allocations: 5.688 kB / 0.9518 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.157e-05/0.5883, allocations: 11.86 kB / 0.9518 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.508e-05/0.5884, allocations: 26.59 kB / 0.9518 GB, free: 7.398 MB / 0.7169 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.000385/0.5888, allocations: 100.3 kB / 0.9519 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001431/0.5889, allocations: 143.2 kB / 0.9521 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.5891, allocations: 40.84 kB / 0.9521 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.213e-05/0.5892, allocations: 57 kB / 0.9522 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.191e-05/0.5892, allocations: 62.62 kB / 0.9522 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.288e-05/0.5893, allocations: 10.31 kB / 0.9522 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.5894, allocations: 50.41 kB / 0.9523 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.627e-05/0.5894, allocations: 36.27 kB / 0.9523 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.377e-05/0.5895, allocations: 58.33 kB / 0.9524 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001864/0.5897, allocations: 173.1 kB / 0.9525 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.5897, allocations: 0 / 0.9525 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.223e-06/0.5897, allocations: 3.938 kB / 0.9525 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.059e-06/0.5897, allocations: 1.312 kB / 0.9525 GB, free: 6.922 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.000696/0.5904, allocations: 0.5418 MB / 0.9531 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.5904, allocations: 10.03 kB / 0.9531 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.794e-05/0.5905, allocations: 20.52 kB / 0.9531 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001613/0.5907, allocations: 212.8 kB / 0.9533 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.5907, allocations: 8.75 kB / 0.9533 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.5907, allocations: 6.219 kB / 0.9533 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002755/0.591, allocations: 135.5 kB / 0.9534 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.591, allocations: 0 / 0.9534 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.591, allocations: 9.047 kB / 0.9535 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.591, allocations: 2.375 kB / 0.9535 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002153/0.5913, allocations: 64.88 kB / 0.9535 GB, free: 6 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004972/0.5918, allocations: 467 kB / 0.954 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001675/0.5919, allocations: 83.33 kB / 0.954 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001183/0.5921, allocations: 46.47 kB / 0.9541 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.5921, allocations: 9.188 kB / 0.9541 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.5924, allocations: 136.5 kB / 0.9542 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.433e-06/0.5924, allocations: 0 / 0.9542 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0005215/0.5929, allocations: 193.3 kB / 0.9544 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.836e-05/0.5929, allocations: 87.5 kB / 0.9545 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.593, allocations: 163.5 kB / 0.9546 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.5931, allocations: 32.36 kB / 0.9547 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.1e-05/0.5931, allocations: 112.1 kB / 0.9548 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.5931, allocations: 31.75 kB / 0.9548 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-05/0.5932, allocations: 39.14 kB / 0.9549 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.978e-05/0.5933, allocations: 325.6 kB / 0.9552 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.5934, allocations: 36.78 kB / 0.9552 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.5935, allocations: 120.6 kB / 0.9553 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002457/0.5938, allocations: 145 kB / 0.9555 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.5938, allocations: 3.938 kB / 0.9555 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003151/0.5941, allocations: 165.5 kB / 0.9556 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.5941, allocations: 7.188 kB / 0.9556 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.5941, allocations: 6.031 kB / 0.9556 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.5942, allocations: 3.312 kB / 0.9556 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.849e-05/0.5943, allocations: 14.17 kB / 0.9556 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.5943, allocations: 4.125 kB / 0.9556 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.856e-05/0.5944, allocations: 23.42 kB / 0.9557 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.5944, allocations: 5.438 kB / 0.9557 GB, free: 4.086 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 8.14e-05/0.5945, allocations: 142.5 kB / 0.9558 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.545e-05/0.5945, allocations: 17.94 kB / 0.9558 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.912e-05/0.5945, allocations: 14.75 kB / 0.9558 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.5946, allocations: 2.156 kB / 0.9558 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.5946, allocations: 3.984 kB / 0.9558 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.5946, allocations: 6.594 kB / 0.9559 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005035/0.5951, allocations: 0.5288 MB / 0.9564 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.5951, allocations: 0 / 0.9564 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.59e-05/0.5952, allocations: 13.45 kB / 0.9564 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.5952, allocations: 3.938 kB / 0.9564 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.5952, allocations: 2.344 kB / 0.9564 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/0.5952, allocations: 9.812 kB / 0.9564 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.5952, allocations: 0 / 0.9564 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003198/0.5955, allocations: 320.6 kB / 0.9567 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.517e-05/0.5956, allocations: 92.91 kB / 0.9568 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.104e-05/0.5956, allocations: 6.156 kB / 0.9568 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.5958, allocations: 21.08 kB / 0.9568 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.792e-05/0.5958, allocations: 8.297 kB / 0.9568 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.979e-05/0.5958, allocations: 14.33 kB / 0.9568 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.601e-05/0.5959, allocations: 114.1 kB / 0.9569 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5959, allocations: 0 / 0.9569 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000306/0.5962, allocations: 40.78 kB / 0.957 GB, free: 2.922 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.0003358/0.5966, allocations: 219.9 kB / 0.9572 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003319/0.5969, allocations: 124 kB / 0.9573 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.5969, allocations: 0 / 0.9573 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.5971, allocations: 53.47 kB / 0.9574 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.5974, allocations: 20.23 kB / 0.9574 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003632/0.5978, allocations: 243.1 kB / 0.9576 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000125/0.5979, allocations: 0.7189 MB / 0.9583 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.911e-05/0.598, allocations: 24.91 kB / 0.9583 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.655e-05/0.598, allocations: 14.25 kB / 0.9584 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of SimCode: time 1.91e-07/0.598, allocations: 5.281 kB / 0.9584 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of Templates: time 0.004408/0.6024, allocations: 1.782 MB / 0.9601 GB, free: 0.8633 MB / 0.7169 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/jenkins/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