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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001636/0.001636, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001456/0.001456, allocations: 194.7 kB / 16.14 MB, free: 6.629 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.446/1.446, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.693/2.693, allocations: 437 MB / 0.71 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001987/0.001987, allocations: 67.89 kB / 0.8686 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6151/0.6171, allocations: 151.6 MB / 1.017 GB, free: 2.805 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.003001/0.6202, allocations: 1.651 MB / 1.018 GB, free: 1.145 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001281/0.6215, allocations: 0.6975 MB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.521e-05/0.6216, allocations: 0 / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.6217, allocations: 3.938 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.804e-05/0.6218, allocations: 31.72 kB / 1.019 GB, free: 416 kB / 0.7637 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.0003865/0.6221, allocations: 91.84 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001694/0.6223, allocations: 123.6 kB / 1.019 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.6225, allocations: 33.11 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.905e-05/0.6226, allocations: 47.78 kB / 1.019 GB, free: 116 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.55e-05/0.6227, allocations: 67.67 kB / 1.019 GB, free: 48 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.6227, allocations: 8 kB / 1.019 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000128/0.6228, allocations: 48.02 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.161e-05/0.6229, allocations: 23.86 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.066e-05/0.623, allocations: 63.58 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002311/0.6232, allocations: 153.5 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.6232, allocations: 0 / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.102e-06/0.6232, allocations: 0 / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.786e-06/0.6233, allocations: 4 kB / 1.02 GB, free: 15.75 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.0009317/0.6242, allocations: 0.5468 MB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.6242, allocations: 12.03 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.81e-05/0.6243, allocations: 16.75 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002392/0.6246, allocations: 220 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.6246, allocations: 12.36 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.313e-05/0.6246, allocations: 4.375 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003231/0.6249, allocations: 127.7 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.6249, allocations: 0 / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.625, allocations: 8 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.625, allocations: 0 / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002445/0.6252, allocations: 71.88 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006586/0.6259, allocations: 464.7 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002052/0.6261, allocations: 77.19 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001489/0.6263, allocations: 49.81 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.381e-05/0.6263, allocations: 0 / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003289/0.6266, allocations: 168.9 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.6267, allocations: 0 / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0006/0.6273, allocations: 181.4 kB / 1.021 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/0.6273, allocations: 89.05 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.6275, allocations: 163.4 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.6275, allocations: 25.7 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.06e-05/0.6276, allocations: 116.2 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.407e-05/0.6276, allocations: 19.72 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.112e-05/0.6277, allocations: 37.7 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001441/0.6279, allocations: 330.8 kB / 1.022 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.628, allocations: 43.97 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.6282, allocations: 111.5 kB / 1.022 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003081/0.6285, allocations: 143.6 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.6286, allocations: 4.375 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003851/0.6289, allocations: 169.4 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.629, allocations: 8 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.629, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.629, allocations: 7.938 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.6291, allocations: 19.92 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.6291, allocations: 4 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.6292, allocations: 19.92 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.6293, allocations: 4 kB / 1.023 GB, free: 12.19 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.0001339/0.6294, allocations: 146.3 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.6294, allocations: 15.81 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.298e-05/0.6295, allocations: 17.41 kB / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.6295, allocations: 0 / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.6295, allocations: 0 / 1.023 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.6295, allocations: 11.92 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007475/0.6303, allocations: 0.5288 MB / 1.023 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.6303, allocations: 3.938 kB / 1.023 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.584e-05/0.6304, allocations: 11.98 kB / 1.023 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.955e-06/0.6304, allocations: 7.922 kB / 1.023 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.6304, allocations: 8 kB / 1.023 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.6304, allocations: 0 / 1.023 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.6304, allocations: 0 / 1.023 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/0.6309, allocations: 322.5 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.387e-05/0.6309, allocations: 88.92 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.631, allocations: 7.922 kB / 1.024 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.6311, allocations: 15.98 kB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.774e-05/0.6312, allocations: 15.98 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.093e-05/0.6312, allocations: 4 kB / 1.024 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.973e-05/0.6314, allocations: 128.7 kB / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6314, allocations: 0 / 1.024 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003511/0.6317, allocations: 36 kB / 1.024 GB, free: 10.74 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.0005256/0.6322, allocations: 222.7 kB / 1.024 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003726/0.6326, allocations: 99.88 kB / 1.024 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.309e-06/0.6326, allocations: 4 kB / 1.024 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.6328, allocations: 55.89 kB / 1.024 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003757/0.6332, allocations: 20.55 kB / 1.024 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005093/0.6337, allocations: 283.7 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.6341, allocations: 0.716 MB / 1.025 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.846e-05/0.6342, allocations: 20.53 kB / 1.025 GB, free: 9.309 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.736e-05/0.6342, allocations: 15.44 kB / 1.025 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.6342, allocations: 0 / 1.025 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of Templates: time 0.005284/0.6395, allocations: 1.642 MB / 1.027 GB, free: 7.664 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=400 -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/jenkins/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