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.007795/0.007795, allocations: 101.7 kB / 15.73 MB, free: 5.969 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.001534/0.001534, allocations: 195.6 kB / 16.67 MB, free: 5.906 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.78/2.78, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 71.88 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.3512, allocations: 157.4 MB / 1.208 GB, free: 9.672 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.002818/0.3541, allocations: 1.592 MB / 1.209 GB, free: 8.066 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.3554, allocations: 0.7055 MB / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.846e-05/0.3554, allocations: 0 / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.3555, allocations: 15.8 kB / 1.21 GB, free: 7.34 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.373e-05/0.3556, allocations: 19.75 kB / 1.21 GB, free: 7.32 MB / 0.9669 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.0004323/0.356, allocations: 107.7 kB / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001794/0.3562, allocations: 135.6 kB / 1.21 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.3564, allocations: 37.09 kB / 1.21 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.859e-05/0.3565, allocations: 55.78 kB / 1.21 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.879e-05/0.3566, allocations: 67.67 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/0.3566, allocations: 8 kB / 1.21 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001143/0.3567, allocations: 47.97 kB / 1.21 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.273e-05/0.3568, allocations: 35.91 kB / 1.21 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.737e-05/0.3569, allocations: 59.66 kB / 1.211 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002245/0.3571, allocations: 171.4 kB / 1.211 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3571, allocations: 0 / 1.211 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3571, allocations: 0 / 1.211 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.64e-06/0.3571, allocations: 0 / 1.211 GB, free: 6.609 MB / 0.9669 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.0008549/0.358, allocations: 0.5506 MB / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.358, allocations: 8.625 kB / 1.211 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.562e-05/0.3581, allocations: 12.84 kB / 1.211 GB, free: 5.973 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/0.3583, allocations: 220.7 kB / 1.211 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.513e-05/0.3583, allocations: 8.375 kB / 1.211 GB, free: 5.711 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.137e-05/0.3584, allocations: 8.375 kB / 1.211 GB, free: 5.703 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003189/0.3587, allocations: 139.6 kB / 1.212 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.3587, allocations: 0 / 1.212 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.3587, allocations: 4 kB / 1.212 GB, free: 5.551 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.3588, allocations: 4 kB / 1.212 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002265/0.359, allocations: 71.86 kB / 1.212 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006177/0.3596, allocations: 464.6 kB / 1.212 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002045/0.3598, allocations: 85.12 kB / 1.212 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.36, allocations: 45.81 kB / 1.212 GB, free: 4.816 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.36, allocations: 8 kB / 1.212 GB, free: 4.809 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003042/0.3603, allocations: 141 kB / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.383e-06/0.3603, allocations: 0 / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0005431/0.3609, allocations: 193.3 kB / 1.213 GB, free: 4.457 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.429e-05/0.3609, allocations: 81.11 kB / 1.213 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.3611, allocations: 166.9 kB / 1.213 GB, free: 4.184 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.524e-05/0.3611, allocations: 29.7 kB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.428e-05/0.3612, allocations: 112.3 kB / 1.213 GB, free: 4.031 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.681e-05/0.3612, allocations: 23.7 kB / 1.213 GB, free: 4.008 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.629e-05/0.3613, allocations: 41.7 kB / 1.213 GB, free: 3.961 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.3614, allocations: 326.8 kB / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.3616, allocations: 43.89 kB / 1.213 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001857/0.3617, allocations: 126.2 kB / 1.213 GB, free: 3.43 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002851/0.362, allocations: 143.5 kB / 1.214 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.362, allocations: 112 / 1.214 GB, free: 3.262 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003535/0.3624, allocations: 173.2 kB / 1.214 GB, free: 3.086 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.3624, allocations: 5.406 kB / 1.214 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.3624, allocations: 7.984 kB / 1.214 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.3625, allocations: 4 kB / 1.214 GB, free: 3.07 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.3626, allocations: 11.98 kB / 1.214 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.3626, allocations: 7.938 kB / 1.214 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.93e-05/0.3627, allocations: 24.2 kB / 1.214 GB, free: 3.027 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.3627, allocations: 8 kB / 1.214 GB, free: 3.02 MB / 0.9669 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.0001021/0.3628, allocations: 121.8 kB / 1.214 GB, free: 2.891 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.871e-05/0.3628, allocations: 19.8 kB / 1.214 GB, free: 2.871 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.108e-05/0.3629, allocations: 17.41 kB / 1.214 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.3629, allocations: 4 kB / 1.214 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.3629, allocations: 0 / 1.214 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.3629, allocations: 3.938 kB / 1.214 GB, free: 2.844 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006598/0.3636, allocations: 0.5289 MB / 1.215 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3636, allocations: 0 / 1.215 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.83e-05/0.3637, allocations: 16.39 kB / 1.215 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.3637, allocations: 7.938 kB / 1.215 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.3637, allocations: 4 kB / 1.215 GB, free: 2.23 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.3637, allocations: 3.984 kB / 1.215 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3637, allocations: 8 kB / 1.215 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004078/0.3641, allocations: 322.7 kB / 1.215 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.767e-05/0.3642, allocations: 92.86 kB / 1.215 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.3642, allocations: 7.938 kB / 1.215 GB, free: 1.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.3644, allocations: 23.95 kB / 1.215 GB, free: 1.746 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.594e-05/0.3645, allocations: 11.98 kB / 1.215 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.3645, allocations: 8 kB / 1.215 GB, free: 1.727 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 8.758e-05/0.3646, allocations: 124.2 kB / 1.215 GB, free: 1.605 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3646, allocations: 0 / 1.215 GB, free: 1.605 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000328/0.3649, allocations: 39.98 kB / 1.215 GB, free: 1.566 MB / 0.9669 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.0004409/0.3654, allocations: 195.6 kB / 1.215 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003416/0.3657, allocations: 111.8 kB / 1.215 GB, free: 1.297 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3657, allocations: 0 / 1.215 GB, free: 1.297 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.3659, allocations: 55.89 kB / 1.216 GB, free: 1.242 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.3663, allocations: 27.5 kB / 1.216 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004696/0.3668, allocations: 239.6 kB / 1.216 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003279/0.3671, allocations: 0.7157 MB / 1.216 GB, free: 220 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.459e-05/0.3672, allocations: 24.53 kB / 1.216 GB, free: 196 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.163e-05/0.3672, allocations: 15.62 kB / 1.216 GB, free: 180 kB / 0.9669 GB Notification: Performance of SimCode: time 2.3e-07/0.3672, allocations: 0 / 1.216 GB, free: 180 kB / 0.9669 GB Notification: Performance of Templates: time 0.004951/0.3722, allocations: 1.791 MB / 1.218 GB, free: 14.39 MB / 0.9825 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