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.00138/0.00138, allocations: 102.3 kB / 16.41 MB, free: 6.504 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.001379/0.001379, allocations: 185.6 kB / 17.34 MB, free: 5.766 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.5/1.5, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.291/2.291, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 63.91 kB / 0.9515 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7357/0.7372, allocations: 140.4 MB / 1.089 GB, free: 5.789 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002335/0.7396, allocations: 1.591 MB / 1.09 GB, free: 4.68 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001052/0.7406, allocations: 0.691 MB / 1.091 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.073e-05/0.7407, allocations: 1.062 kB / 1.091 GB, free: 4.215 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.565e-05/0.7408, allocations: 14.56 kB / 1.091 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.1e-05/0.7408, allocations: 24.42 kB / 1.091 GB, free: 4.184 MB / 0.8575 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.0003782/0.7412, allocations: 108 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.7414, allocations: 135.3 kB / 1.091 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.097e-05/0.7415, allocations: 35.55 kB / 1.091 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.18e-05/0.7415, allocations: 49.77 kB / 1.091 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.185e-05/0.7416, allocations: 73.55 kB / 1.091 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.7417, allocations: 10.56 kB / 1.091 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.7418, allocations: 48.27 kB / 1.091 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.073e-05/0.7418, allocations: 34.94 kB / 1.091 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.743e-05/0.7419, allocations: 57.67 kB / 1.091 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.7421, allocations: 170.7 kB / 1.092 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.7421, allocations: 0.9375 kB / 1.092 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.051e-06/0.7421, allocations: 0 / 1.092 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 3.827e-06/0.7421, allocations: 0 / 1.092 GB, free: 3.855 MB / 0.8575 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.0006321/0.7428, allocations: 0.5423 MB / 1.092 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 2.766e-05/0.7428, allocations: 9.719 kB / 1.092 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.984e-05/0.7429, allocations: 17.55 kB / 1.092 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.743, allocations: 225.4 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.743, allocations: 9.203 kB / 1.092 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.379e-05/0.7431, allocations: 10.69 kB / 1.092 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002849/0.7433, allocations: 129.5 kB / 1.092 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.7434, allocations: 0 / 1.092 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.7434, allocations: 5.438 kB / 1.092 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.982e-06/0.7434, allocations: 2.156 kB / 1.092 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002487/0.7437, allocations: 73.88 kB / 1.093 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000505/0.7442, allocations: 463.8 kB / 1.093 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001839/0.7444, allocations: 85.25 kB / 1.093 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001206/0.7445, allocations: 46.42 kB / 1.093 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.7445, allocations: 2.422 kB / 1.093 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002607/0.7448, allocations: 154.3 kB / 1.093 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.273e-06/0.7448, allocations: 0 / 1.093 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0005367/0.7453, allocations: 183.7 kB / 1.093 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.597e-05/0.7454, allocations: 88.03 kB / 1.094 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001174/0.7455, allocations: 171.1 kB / 1.094 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.7455, allocations: 33.61 kB / 1.094 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.418e-05/0.7456, allocations: 111.4 kB / 1.094 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.597e-05/0.7456, allocations: 30.44 kB / 1.094 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.093e-05/0.7457, allocations: 33.72 kB / 1.094 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.688e-05/0.7457, allocations: 331.7 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.7458, allocations: 32.66 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001605/0.746, allocations: 119.6 kB / 1.094 GB, free: 1.5 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.7463, allocations: 151 kB / 1.094 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.7463, allocations: 0.9375 kB / 1.094 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003587/0.7467, allocations: 157 kB / 1.095 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.7467, allocations: 6.797 kB / 1.095 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.81e-06/0.7467, allocations: 6.719 kB / 1.095 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.7467, allocations: 2.969 kB / 1.095 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.553e-05/0.7468, allocations: 22.8 kB / 1.095 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.206e-06/0.7468, allocations: 4.047 kB / 1.095 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.7469, allocations: 19.91 kB / 1.095 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/0.7469, allocations: 4.75 kB / 1.095 GB, free: 1.305 MB / 0.8575 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.242e-05/0.747, allocations: 144.7 kB / 1.095 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.7471, allocations: 15.84 kB / 1.095 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.301e-05/0.7471, allocations: 16.05 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.7471, allocations: 2.531 kB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.7471, allocations: 384 / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.7472, allocations: 5.625 kB / 1.095 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000627/0.7478, allocations: 0.5401 MB / 1.095 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.7478, allocations: 4.75 kB / 1.095 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.213e-05/0.7479, allocations: 13.23 kB / 1.095 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.7479, allocations: 4.531 kB / 1.095 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.7479, allocations: 2.922 kB / 1.095 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.7479, allocations: 0.7188 kB / 1.095 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.7479, allocations: 1.203 kB / 1.095 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003879/0.7483, allocations: 326.9 kB / 1.096 GB, free: 460 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.771e-05/0.7483, allocations: 86.25 kB / 1.096 GB, free: 360 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/0.7484, allocations: 5.828 kB / 1.096 GB, free: 356 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.7486, allocations: 19.09 kB / 1.096 GB, free: 352 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.797e-05/0.7486, allocations: 12.41 kB / 1.096 GB, free: 348 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-05/0.7487, allocations: 7.75 kB / 1.096 GB, free: 348 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.48e-05/0.7487, allocations: 125.3 kB / 1.096 GB, free: 256 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7487, allocations: 0 / 1.096 GB, free: 256 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003825/0.7491, allocations: 37.16 kB / 1.096 GB, free: 248 kB / 0.8575 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.0003894/0.7495, allocations: 208.7 kB / 1.096 GB, free: 116 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003581/0.7499, allocations: 109.8 kB / 1.096 GB, free: 88 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.7499, allocations: 0.9375 kB / 1.096 GB, free: 88 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.7501, allocations: 56 kB / 1.096 GB, free: 76 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.7504, allocations: 30.09 kB / 1.096 GB, free: 60 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005114/0.751, allocations: 275.6 kB / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.7513, allocations: 0.7149 MB / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.489e-05/0.7513, allocations: 15.22 kB / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of SimCode: time 4.01e-07/0.7513, allocations: 0 / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of Templates: time 0.004819/0.7562, allocations: 2.066 MB / 1.099 GB, free: 14.92 MB / 0.8731 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/jenkins1/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