Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.58/1.58, allocations: 249.5 MB / 257 MB, free: 6.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001185/0.001185, allocations: 168.9 kB / 316.3 MB, free: 3.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.844/1.844, allocations: 205.3 MB / 0.5671 GB, free: 15.88 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008229/0.000823, allocations: 74.56 kB / 0.6714 GB, free: 5.012 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.253e-05/1.256e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2032, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6607/0.864, allocations: 133.7 MB / 1.016 GB, free: 4.145 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000184/0.8642, allocations: 85.69 kB / 1.016 GB, free: 4.098 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00826/0.8725, allocations: 2.971 MB / 1.019 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.022e-06/0.8725, allocations: 0 / 1.019 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.117e-06/0.8725, allocations: 4 kB / 1.019 GB, free: 1.551 MB / 0.6355 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.0005993/0.8731, allocations: 0.5181 MB / 1.019 GB, free: 0.9805 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.8732, allocations: 8.031 kB / 1.019 GB, free: 0.9727 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.681e-05/0.8732, allocations: 15.81 kB / 1.019 GB, free: 0.957 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002064/0.8734, allocations: 218.5 kB / 1.019 GB, free: 0.7109 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.8734, allocations: 4 kB / 1.019 GB, free: 0.707 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.842e-05/0.8735, allocations: 11.88 kB / 1.02 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.9e-05/0.8736, allocations: 31.48 kB / 1.02 GB, free: 0.6758 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000159/0.8737, allocations: 98.25 kB / 1.02 GB, free: 0.5859 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.8737, allocations: 0 / 1.02 GB, free: 0.5859 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.8738, allocations: 0 / 1.02 GB, free: 0.5859 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.8738, allocations: 4 kB / 1.02 GB, free: 0.582 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005745/0.8744, allocations: 443.5 kB / 1.02 GB, free: 144 kB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.203e-05/0.8745, allocations: 64.7 kB / 1.02 GB, free: 72 kB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.389e-05/0.8745, allocations: 37.16 kB / 1.02 GB, free: 36 kB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.246e-05/0.8745, allocations: 0 / 1.02 GB, free: 36 kB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.8747, allocations: 116.2 kB / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=12): time 1.352e-06/0.8747, allocations: 0 / 1.02 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of matching and sorting (n=12): time 0.0002172/0.875, allocations: 109.1 kB / 1.02 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.932e-05/0.875, allocations: 85.06 kB / 1.02 GB, free: 15.72 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.8751, allocations: 157.4 kB / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.8752, allocations: 29.7 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.809e-05/0.8752, allocations: 103.5 kB / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.961e-05/0.8753, allocations: 27.55 kB / 1.021 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-06/0.8753, allocations: 0 / 1.021 GB, free: 15.42 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.8754, allocations: 330.5 kB / 1.021 GB, free: 15.1 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.849e-05/0.8754, allocations: 19.98 kB / 1.021 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.643e-05/0.8755, allocations: 97.56 kB / 1.021 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.201e-05/0.8756, allocations: 27.86 kB / 1.021 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.8756, allocations: 4.094 kB / 1.021 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001625/0.8758, allocations: 120.8 kB / 1.021 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.8758, allocations: 4 kB / 1.021 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.8758, allocations: 4 kB / 1.021 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.8758, allocations: 4 kB / 1.021 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.8759, allocations: 23.91 kB / 1.021 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.876, allocations: 4 kB / 1.021 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001084/0.8761, allocations: 27.88 kB / 1.021 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.8761, allocations: 8.031 kB / 1.021 GB, free: 14.75 MB / 0.6511 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 () * 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 7.844e-05/0.8762, allocations: 117.3 kB / 1.022 GB, free: 14.64 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.472e-05/0.8762, allocations: 15.81 kB / 1.022 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.375e-05/0.8763, allocations: 17.77 kB / 1.022 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.8763, allocations: 4.094 kB / 1.022 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.8763, allocations: 3.984 kB / 1.022 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.8763, allocations: 0 / 1.022 GB, free: 14.6 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004329/0.8767, allocations: 476.3 kB / 1.022 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.8767, allocations: 3.938 kB / 1.022 GB, free: 14.12 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.682e-05/0.8768, allocations: 15.98 kB / 1.022 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.8768, allocations: 0 / 1.022 GB, free: 14.11 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.8769, allocations: 7.984 kB / 1.022 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.8769, allocations: 0 / 1.022 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.8769, allocations: 3.953 kB / 1.022 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002264/0.8771, allocations: 291.8 kB / 1.022 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.878e-05/0.8772, allocations: 88.92 kB / 1.022 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.8772, allocations: 0 / 1.022 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.8774, allocations: 31.8 kB / 1.022 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.391e-05/0.8774, allocations: 15.98 kB / 1.022 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.23e-05/0.8775, allocations: 8 kB / 1.022 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.521e-05/0.8775, allocations: 110.9 kB / 1.023 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8775, allocations: 0 / 1.023 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003203/0.8779, allocations: 43.78 kB / 1.023 GB, free: 13.52 MB / 0.6511 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 () * 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.000365/0.8782, allocations: 195.7 kB / 1.023 GB, free: 13.35 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001477/0.8784, allocations: 71.42 kB / 1.023 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.8784, allocations: 4.062 kB / 1.023 GB, free: 13.29 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.169e-05/0.8785, allocations: 31.5 kB / 1.023 GB, free: 13.27 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002296/0.8787, allocations: 21.91 kB / 1.023 GB, free: 13.25 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003354/0.8791, allocations: 164.6 kB / 1.023 GB, free: 13.08 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002483/0.8793, allocations: 0.7158 MB / 1.024 GB, free: 12.34 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.29e-05/0.8794, allocations: 20.53 kB / 1.024 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.89e-05/0.8794, allocations: 15.44 kB / 1.024 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of SimCode: time 2.91e-07/0.8794, allocations: 0 / 1.024 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of Templates: time 0.003981/0.8834, allocations: 1.544 MB / 1.025 GB, free: 10.78 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_IO_Files_Examples_Printer.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.Printer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches