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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001334/0.001334, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.001441/0.001441, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 223.2 MB / 239.9 MB, free: 5.234 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.585/2.585, allocations: 436.5 MB / 0.7104 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004263/0.0004266, allocations: 8 kB / 0.8707 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8062/0.8066, allocations: 153.7 MB / 1.021 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.Printer): time 0.001775/0.8084, allocations: 1.27 MB / 1.022 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001053/0.8095, allocations: 0.6511 MB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.24e-05/0.8096, allocations: 4 kB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.758e-05/0.8097, allocations: 3.938 kB / 1.023 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.851e-05/0.8097, allocations: 35.83 kB / 1.023 GB, free: 15.14 MB / 0.7794 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0004199/0.8102, allocations: 87.72 kB / 1.023 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.8103, allocations: 83.81 kB / 1.023 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001313/0.8105, allocations: 29.11 kB / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.806e-05/0.8105, allocations: 35.84 kB / 1.023 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.707e-05/0.8106, allocations: 59.75 kB / 1.023 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.78e-05/0.8107, allocations: 8 kB / 1.023 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.8108, allocations: 35.95 kB / 1.023 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.24e-05/0.8108, allocations: 23.92 kB / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.754e-05/0.8109, allocations: 45.64 kB / 1.023 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.8111, allocations: 113.7 kB / 1.023 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.8111, allocations: 0 / 1.023 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.994e-06/0.8111, allocations: 0 / 1.023 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.8111, allocations: 0 / 1.023 GB, free: 14.63 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.0007957/0.8119, allocations: 0.5272 MB / 1.024 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.8119, allocations: 15.98 kB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.307e-05/0.812, allocations: 23.75 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002247/0.8122, allocations: 214.7 kB / 1.024 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.8123, allocations: 4 kB / 1.024 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.169e-05/0.8123, allocations: 8 kB / 1.024 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003123/0.8126, allocations: 146.5 kB / 1.024 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.8126, allocations: 0 / 1.024 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.8127, allocations: 0 / 1.024 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.8127, allocations: 3.938 kB / 1.024 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002478/0.8129, allocations: 83.94 kB / 1.024 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006048/0.8135, allocations: 468.7 kB / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002083/0.8137, allocations: 89.17 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.8138, allocations: 4 kB / 1.025 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003073/0.8141, allocations: 149.1 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.8141, allocations: 0 / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0005676/0.8147, allocations: 217.8 kB / 1.025 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.8147, allocations: 89.05 kB / 1.025 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.8149, allocations: 152 kB / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.799e-05/0.8149, allocations: 41.72 kB / 1.025 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.676e-05/0.815, allocations: 116.3 kB / 1.025 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.235e-05/0.815, allocations: 27.61 kB / 1.026 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.324e-06/0.815, allocations: 4 kB / 1.026 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.8151, allocations: 326.8 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.8153, allocations: 47.97 kB / 1.026 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001918/0.8155, allocations: 124.7 kB / 1.026 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001462/0.8156, allocations: 55.91 kB / 1.026 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.8156, allocations: 0 / 1.026 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003702/0.816, allocations: 181.2 kB / 1.026 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.8161, allocations: 9.562 kB / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.8161, allocations: 3.984 kB / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.8161, allocations: 4 kB / 1.026 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.8162, allocations: 28.2 kB / 1.026 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.8162, allocations: 4 kB / 1.026 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.8163, allocations: 19.98 kB / 1.026 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.8164, allocations: 8 kB / 1.026 GB, free: 11.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 ($PRE.pri2.firstTrigger,pri2.firstTrigger,$PRE.pri1.firstTrigger,pri1.firstTrigger,$whenCondition4,$whenCondition2,pri1.sampleTrigger,$whenCondition3,pri2.sampleTrigger,$PRE.pri3.firstTrigger,pri3.firstTrigger,$whenCondition1,pri3.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001549/0.8165, allocations: 129.7 kB / 1.026 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.8166, allocations: 19.83 kB / 1.026 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.626e-05/0.8166, allocations: 21.41 kB / 1.026 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.8166, allocations: 4 kB / 1.026 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.8166, allocations: 0 / 1.026 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.8166, allocations: 0 / 1.026 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007342/0.8174, allocations: 0.5444 MB / 1.027 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.8174, allocations: 7.938 kB / 1.027 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.708e-05/0.8175, allocations: 15.98 kB / 1.027 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.8175, allocations: 0 / 1.027 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.8175, allocations: 4 kB / 1.027 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.8175, allocations: 7.984 kB / 1.027 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.8175, allocations: 4 kB / 1.027 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004198/0.818, allocations: 352.1 kB / 1.027 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.54e-05/0.818, allocations: 85.02 kB / 1.027 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.354e-05/0.818, allocations: 0 / 1.027 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001884/0.8182, allocations: 27.97 kB / 1.027 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.29e-05/0.8183, allocations: 11.94 kB / 1.027 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-05/0.8183, allocations: 8.094 kB / 1.027 GB, free: 9.852 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.951e-05/0.8184, allocations: 128.2 kB / 1.028 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8184, allocations: 0 / 1.028 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003526/0.8188, allocations: 43.89 kB / 1.028 GB, free: 9.684 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004746/0.8193, allocations: 200 kB / 1.028 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003752/0.8196, allocations: 127.7 kB / 1.028 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8197, allocations: 0 / 1.028 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.8198, allocations: 72.44 kB / 1.028 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.8201, allocations: 19.92 kB / 1.028 GB, free: 9.301 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004879/0.8206, allocations: 263 kB / 1.028 GB, free: 9.02 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.8209, allocations: 0.7236 MB / 1.029 GB, free: 8.27 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.882e-05/0.821, allocations: 28.47 kB / 1.029 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.592e-05/0.821, allocations: 15.44 kB / 1.029 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.821, allocations: 0 / 1.029 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of Templates: time 0.004602/0.8256, allocations: 1.571 MB / 1.031 GB, free: 6.668 MB / 0.7794 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","../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches