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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001177/0.001181, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001262/0.001262, allocations: 193 kB / 16.14 MB, free: 6.711 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.432/1.432, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.777/2.777, allocations: 461.8 MB / 0.7342 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 60.33 kB / 0.8984 GB, free: 37.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4131/0.4147, allocations: 157.4 MB / 1.052 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003348/0.4181, allocations: 1.646 MB / 1.054 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.4196, allocations: 0.7089 MB / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.829e-05/0.4197, allocations: 0 / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.4199, allocations: 3.938 kB / 1.054 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.306e-05/0.42, allocations: 19.8 kB / 1.054 GB, free: 6.43 MB / 0.8106 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0005147/0.4205, allocations: 95.83 kB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002433/0.4208, allocations: 135.6 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.4209, allocations: 29.05 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.421, allocations: 47.84 kB / 1.055 GB, free: 6.129 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.4212, allocations: 63.67 kB / 1.055 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.746e-05/0.4212, allocations: 12 kB / 1.055 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001486/0.4213, allocations: 43.95 kB / 1.055 GB, free: 6.012 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.437e-05/0.4214, allocations: 23.92 kB / 1.055 GB, free: 5.988 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 9.203e-05/0.4215, allocations: 59.64 kB / 1.055 GB, free: 5.93 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002895/0.4218, allocations: 159.8 kB / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.4218, allocations: 0 / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.61e-07/0.4218, allocations: 0 / 1.055 GB, free: 5.773 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.4218, allocations: 0 / 1.055 GB, free: 5.773 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.0009613/0.4228, allocations: 0.5468 MB / 1.056 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.4229, allocations: 11.97 kB / 1.056 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.849e-05/0.4229, allocations: 16.75 kB / 1.056 GB, free: 5.133 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002354/0.4232, allocations: 216.6 kB / 1.056 GB, free: 4.883 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.4232, allocations: 8.359 kB / 1.056 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.572e-05/0.4232, allocations: 12.38 kB / 1.056 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003383/0.4236, allocations: 134.8 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.4236, allocations: 0 / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.4236, allocations: 7.938 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.4236, allocations: 0 / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002463/0.4239, allocations: 67.88 kB / 1.056 GB, free: 4.648 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007421/0.4246, allocations: 468.6 kB / 1.056 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000216/0.4249, allocations: 85.19 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000138/0.425, allocations: 45.81 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.074e-05/0.4251, allocations: 3.938 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004118/0.4255, allocations: 156.9 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.4255, allocations: 0 / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of matching and sorting (n=12): time 0.0006583/0.4262, allocations: 189.3 kB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.4262, allocations: 81.11 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001733/0.4264, allocations: 158.4 kB / 1.057 GB, free: 3.355 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.345e-05/0.4265, allocations: 37.7 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.283e-05/0.4266, allocations: 112.3 kB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/0.4266, allocations: 23.72 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.807e-05/0.4267, allocations: 33.7 kB / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001739/0.4269, allocations: 334.8 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.427, allocations: 35.91 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002006/0.4272, allocations: 114.3 kB / 1.058 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003029/0.4275, allocations: 151.6 kB / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.4275, allocations: 0 / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004038/0.428, allocations: 169.2 kB / 1.058 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.428, allocations: 4 kB / 1.058 GB, free: 2.262 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.428, allocations: 8.391 kB / 1.058 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.428, allocations: 7.875 kB / 1.058 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.4282, allocations: 15.98 kB / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.4282, allocations: 4 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.4283, allocations: 19.92 kB / 1.058 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.4283, allocations: 8 kB / 1.058 GB, free: 2.199 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.0001353/0.4284, allocations: 135.3 kB / 1.058 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.161e-05/0.4285, allocations: 15.81 kB / 1.058 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.531e-05/0.4285, allocations: 21.41 kB / 1.058 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.4286, allocations: 4 kB / 1.058 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4286, allocations: 0 / 1.058 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.4286, allocations: 7.922 kB / 1.058 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007497/0.4293, allocations: 0.5249 MB / 1.059 GB, free: 1.43 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.4294, allocations: 4 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.239e-05/0.4294, allocations: 12.45 kB / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.005e-05/0.4294, allocations: 11.92 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.4295, allocations: 4 kB / 1.059 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.4295, allocations: 0 / 1.059 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.4295, allocations: 4 kB / 1.059 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004375/0.4299, allocations: 318.5 kB / 1.059 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.433e-05/0.43, allocations: 92.86 kB / 1.059 GB, free: 0.957 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.95e-05/0.43, allocations: 15.92 kB / 1.059 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.4302, allocations: 11.98 kB / 1.059 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.06e-05/0.4303, allocations: 11.98 kB / 1.059 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.883e-05/0.4303, allocations: 8 kB / 1.059 GB, free: 0.9102 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 9.339e-05/0.4304, allocations: 124.2 kB / 1.059 GB, free: 0.7891 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.81e-07/0.4304, allocations: 4 kB / 1.059 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003696/0.4308, allocations: 36 kB / 1.06 GB, free: 0.75 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.0004502/0.4313, allocations: 210.7 kB / 1.06 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003593/0.4316, allocations: 108.2 kB / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4316, allocations: 0 / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001615/0.4318, allocations: 51.95 kB / 1.06 GB, free: 428 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003734/0.4322, allocations: 15.98 kB / 1.06 GB, free: 412 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005233/0.4327, allocations: 285.5 kB / 1.06 GB, free: 100 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.433, allocations: 0.72 MB / 1.061 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.249e-05/0.4331, allocations: 20.53 kB / 1.061 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.571e-05/0.4331, allocations: 15.62 kB / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.4332, allocations: 0 / 1.061 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of Templates: time 0.005261/0.4384, allocations: 1.642 MB / 1.063 GB, free: 13.69 MB / 0.8262 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 -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/jenkins/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