Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVReader.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.CSVReader,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|combiTimeTable.y.1.|combiTimeTable.y.2.|cos.y|step.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVReader") translateModel(Buildings.Utilities.IO.Files.Examples.CSVReader,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|combiTimeTable.y.1.|combiTimeTable.y.2.|cos.y|step.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVReader") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009841/0.0009841, allocations: 99.31 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.001042/0.001042, allocations: 177.3 kB / 15.95 MB, free: 216 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.529/1.529, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.686/2.686, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003977/0.000398, allocations: 8 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8012/0.8016, allocations: 142.3 MB / 0.9535 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVReader): time 0.001768/0.8034, allocations: 1.341 MB / 0.9548 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001537/0.805, allocations: 1.396 MB / 0.9562 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.902e-05/0.8051, allocations: 5.219 kB / 0.9562 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002301/0.8053, allocations: 26.7 kB / 0.9562 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.8055, allocations: 58.17 kB / 0.9563 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.8057, allocations: 94.64 kB / 0.9564 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.8059, allocations: 85.66 kB / 0.9564 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.989e-05/0.8059, allocations: 10.58 kB / 0.9565 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.806, allocations: 54.42 kB / 0.9565 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.8062, allocations: 41.39 kB / 0.9565 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.723e-05/0.8062, allocations: 2.594 kB / 0.9565 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.458e-05/0.8063, allocations: 39.36 kB / 0.9566 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.634e-05/0.8063, allocations: 25.48 kB / 0.9566 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.332e-05/0.8064, allocations: 43.17 kB / 0.9566 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001486/0.8065, allocations: 107.1 kB / 0.9567 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.8065, allocations: 0 / 0.9567 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.032e-06/0.8066, allocations: 0 / 0.9567 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.8066, allocations: 0 / 0.9567 GB, free: 5.52 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004722/0.807, allocations: 430.5 kB / 0.9572 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.8071, allocations: 8.219 kB / 0.9572 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.906e-05/0.8071, allocations: 17.58 kB / 0.9572 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.8073, allocations: 212.4 kB / 0.9574 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.8074, allocations: 6.547 kB / 0.9574 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.602e-05/0.8074, allocations: 6.25 kB / 0.9574 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.8076, allocations: 99.72 kB / 0.9575 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-06/0.8076, allocations: 3.938 kB / 0.9575 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.8076, allocations: 7.938 kB / 0.9575 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.8076, allocations: 0 / 0.9575 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001689/0.8078, allocations: 61.31 kB / 0.9576 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001667/0.808, allocations: 205.7 kB / 0.9578 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/0.8082, allocations: 120.8 kB / 0.9579 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.586e-05/0.8082, allocations: 10.27 kB / 0.9579 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002278/0.8085, allocations: 110.6 kB / 0.958 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.333e-06/0.8085, allocations: 1.375 kB / 0.958 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004474/0.8089, allocations: 176.6 kB / 0.9582 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/0.809, allocations: 137.7 kB / 0.9583 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.8091, allocations: 174.2 kB / 0.9585 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.8091, allocations: 27.14 kB / 0.9585 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.547e-05/0.8092, allocations: 105.2 kB / 0.9586 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.115e-05/0.8092, allocations: 27.08 kB / 0.9586 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/0.8092, allocations: 1.781 kB / 0.9586 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.89e-05/0.8093, allocations: 333.8 kB / 0.9589 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.8094, allocations: 36.81 kB / 0.959 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/0.8095, allocations: 64.17 kB / 0.959 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.8096, allocations: 51.17 kB / 0.9591 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.8096, allocations: 1 kB / 0.9591 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002714/0.8099, allocations: 134.3 kB / 0.9592 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.8099, allocations: 5.312 kB / 0.9592 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.8099, allocations: 1.094 kB / 0.9592 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.81, allocations: 1.969 kB / 0.9592 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.8101, allocations: 21.17 kB / 0.9592 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.8101, allocations: 6.219 kB / 0.9592 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.926e-05/0.8102, allocations: 16.52 kB / 0.9593 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.748e-06/0.8102, allocations: 6.625 kB / 0.9593 GB, free: 3.188 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 8.181e-05/0.8103, allocations: 130.6 kB / 0.9594 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.303e-05/0.8103, allocations: 9.562 kB / 0.9594 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.208e-05/0.8104, allocations: 15.31 kB / 0.9594 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.8104, allocations: 1.25 kB / 0.9594 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.8104, allocations: 6.078 kB / 0.9594 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.147e-06/0.8104, allocations: 0 / 0.9594 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.8105, allocations: 217.1 kB / 0.9596 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.8105, allocations: 1.906 kB / 0.9596 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.004e-05/0.8106, allocations: 19.5 kB / 0.9596 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.8106, allocations: 6.047 kB / 0.9596 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.8106, allocations: 1.906 kB / 0.9597 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.624e-06/0.8106, allocations: 320 / 0.9597 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.8106, allocations: 5.875 kB / 0.9597 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002872/0.8109, allocations: 200.5 kB / 0.9598 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.676e-05/0.811, allocations: 89.83 kB / 0.9599 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.946e-05/0.811, allocations: 11.42 kB / 0.9599 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.512e-05/0.8111, allocations: 10.31 kB / 0.96 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.449e-05/0.8111, allocations: 11.62 kB / 0.96 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.8112, allocations: 4.781 kB / 0.96 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.561e-05/0.8113, allocations: 139.5 kB / 0.9601 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8113, allocations: 0 / 0.9601 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002461/0.8115, allocations: 30.53 kB / 0.9601 GB, free: 2.375 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009197/0.8124, allocations: 460.1 kB / 0.9606 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002817/0.8127, allocations: 91.02 kB / 0.9607 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.8127, allocations: 0 / 0.9607 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.8129, allocations: 48.83 kB / 0.9607 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.8131, allocations: 29.42 kB / 0.9607 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005189/0.8136, allocations: 260.9 kB / 0.961 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001457/0.8138, allocations: 0.7102 MB / 0.9617 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.824e-05/0.8139, allocations: 20.95 kB / 0.9617 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.491e-05/0.8139, allocations: 20.48 kB / 0.9617 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of SimCode: time 2.7e-07/0.8139, allocations: 0 / 0.9617 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of Templates: time 0.004784/0.8187, allocations: 1.862 MB / 0.9635 GB, free: 184 kB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVReader.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVReader.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVReader.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVReader.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVReader.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVReader -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVReader.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVReader_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_CSVReader.csv","../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVReader.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches