Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0007726/0.0007726, allocations: 98.56 kB / 16.02 MB, free: 76 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.0008932/0.0008933, allocations: 187.7 kB / 16.92 MB, free: 6.75 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.373/1.373, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.617/2.617, allocations: 437.8 MB / 0.7128 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000332/0.000332, allocations: 11.98 kB / 0.8735 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6513/0.6516, allocations: 153.8 MB / 1.024 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001829/0.6535, allocations: 1.297 MB / 1.025 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001252/0.6548, allocations: 0.6898 MB / 1.026 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.189e-05/0.6549, allocations: 0 / 1.026 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.478e-05/0.655, allocations: 7.938 kB / 1.026 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.039e-05/0.655, allocations: 23.78 kB / 1.026 GB, free: 14.01 MB / 0.7794 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.0004763/0.6555, allocations: 99.77 kB / 1.026 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001962/0.6558, allocations: 127.5 kB / 1.026 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.6559, allocations: 37.09 kB / 1.026 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.532e-05/0.656, allocations: 43.84 kB / 1.026 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.837e-05/0.6561, allocations: 55.73 kB / 1.026 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.051e-05/0.6561, allocations: 7.938 kB / 1.026 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001232/0.6563, allocations: 39.98 kB / 1.026 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.202e-05/0.6563, allocations: 27.89 kB / 1.026 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.31e-05/0.6564, allocations: 81.38 kB / 1.026 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001832/0.6566, allocations: 113.8 kB / 1.026 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.6566, allocations: 0 / 1.026 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.654e-06/0.6566, allocations: 0 / 1.026 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.6566, allocations: 0 / 1.026 GB, free: 13.38 MB / 0.7794 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.0008058/0.6574, allocations: 0.5329 MB / 1.027 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.6575, allocations: 12.03 kB / 1.027 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.063e-05/0.6576, allocations: 16.75 kB / 1.027 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002208/0.6578, allocations: 216 kB / 1.027 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.6578, allocations: 8.375 kB / 1.027 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.989e-05/0.6578, allocations: 8.375 kB / 1.027 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003274/0.6582, allocations: 151.5 kB / 1.027 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.6582, allocations: 0 / 1.027 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.6582, allocations: 4 kB / 1.027 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.6582, allocations: 4 kB / 1.027 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002676/0.6585, allocations: 79.94 kB / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000644/0.6591, allocations: 476.7 kB / 1.028 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002129/0.6594, allocations: 93.11 kB / 1.028 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.6595, allocations: 57.75 kB / 1.028 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.129e-05/0.6596, allocations: 0 / 1.028 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003599/0.66, allocations: 149 kB / 1.028 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 2.414e-06/0.66, allocations: 0 / 1.028 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0007181/0.6607, allocations: 221.3 kB / 1.028 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.6608, allocations: 81.09 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.6609, allocations: 159.9 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.578e-05/0.661, allocations: 33.69 kB / 1.028 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.187e-05/0.6611, allocations: 116.2 kB / 1.029 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.525e-05/0.6612, allocations: 19.72 kB / 1.029 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.244e-05/0.6612, allocations: 21.7 kB / 1.029 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001803/0.6614, allocations: 330.8 kB / 1.029 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.6616, allocations: 47.97 kB / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.6618, allocations: 130.1 kB / 1.029 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003494/0.6621, allocations: 163.5 kB / 1.029 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.6622, allocations: 0 / 1.029 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004507/0.6626, allocations: 181.4 kB / 1.029 GB, free: 9.785 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.6626, allocations: 8 kB / 1.029 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.6627, allocations: 0 / 1.029 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.387e-05/0.6627, allocations: 4.109 kB / 1.029 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.6628, allocations: 19.92 kB / 1.029 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.6628, allocations: 8.156 kB / 1.029 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/0.663, allocations: 27.86 kB / 1.029 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.663, allocations: 4 kB / 1.029 GB, free: 9.715 MB / 0.7794 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.0001722/0.6632, allocations: 138.3 kB / 1.03 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/0.6632, allocations: 15.81 kB / 1.03 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.021e-05/0.6633, allocations: 17.64 kB / 1.03 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.6633, allocations: 11.97 kB / 1.03 GB, free: 9.527 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/0.6633, allocations: 4 kB / 1.03 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.6634, allocations: 3.938 kB / 1.03 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009142/0.6643, allocations: 0.5448 MB / 1.03 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.6643, allocations: 4 kB / 1.03 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.091e-05/0.6644, allocations: 15.98 kB / 1.03 GB, free: 8.898 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.6644, allocations: 3.938 kB / 1.03 GB, free: 8.895 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.6644, allocations: 4 kB / 1.03 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.6644, allocations: 7.938 kB / 1.03 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.6644, allocations: 0 / 1.03 GB, free: 8.883 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005224/0.665, allocations: 330.5 kB / 1.031 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.247e-05/0.665, allocations: 96.92 kB / 1.031 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.002e-05/0.6651, allocations: 11.92 kB / 1.031 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001861/0.6653, allocations: 19.98 kB / 1.031 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.61e-05/0.6653, allocations: 11.98 kB / 1.031 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.288e-05/0.6654, allocations: 11.98 kB / 1.031 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001246/0.6655, allocations: 120.2 kB / 1.031 GB, free: 8.258 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6655, allocations: 4 kB / 1.031 GB, free: 8.254 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000394/0.6659, allocations: 36 kB / 1.031 GB, free: 8.219 MB / 0.7794 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.0005044/0.6665, allocations: 207.5 kB / 1.031 GB, free: 8.043 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003782/0.6668, allocations: 123.9 kB / 1.031 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.6669, allocations: 0 / 1.031 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.667, allocations: 60.34 kB / 1.031 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.6674, allocations: 26.36 kB / 1.031 GB, free: 7.84 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005345/0.668, allocations: 320.4 kB / 1.032 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.6683, allocations: 0.7121 MB / 1.032 GB, free: 6.758 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.786e-05/0.6683, allocations: 15.44 kB / 1.032 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.6683, allocations: 0 / 1.032 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of Templates: time 0.004455/0.6728, allocations: 2.034 MB / 1.034 GB, free: 4.719 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_Printer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches