Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005889/0.005889, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001322/0.001322, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.804/2.804, allocations: 472.6 MB / 0.7453 GB, free: 4.582 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 67.89 kB / 1.069 GB, free: 9.191 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3347, allocations: 159.9 MB / 1.226 GB, free: 9.164 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002698/0.3375, allocations: 1.601 MB / 1.227 GB, free: 7.555 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0009439/0.3385, allocations: 0.6271 MB / 1.228 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.46e-05/0.3385, allocations: 4 kB / 1.228 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.3387, allocations: 15.81 kB / 1.228 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002141/0.3389, allocations: 47.75 kB / 1.228 GB, free: 6.855 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003971/0.3393, allocations: 111.8 kB / 1.228 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002469/0.3396, allocations: 195.6 kB / 1.228 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.3397, allocations: 25.09 kB / 1.228 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001423/0.3399, allocations: 91.75 kB / 1.228 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.34, allocations: 83.72 kB / 1.228 GB, free: 6.359 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.877e-05/0.3401, allocations: 12 kB / 1.228 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.308e-05/0.3401, allocations: 28 kB / 1.228 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.689e-05/0.3402, allocations: 39.83 kB / 1.228 GB, free: 6.281 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.864e-05/0.3403, allocations: 63.73 kB / 1.229 GB, free: 6.219 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000231/0.3406, allocations: 163.4 kB / 1.229 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3406, allocations: 4 kB / 1.229 GB, free: 6.055 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.665e-06/0.3406, allocations: 3.984 kB / 1.229 GB, free: 6.051 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.3406, allocations: 0 / 1.229 GB, free: 6.051 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006598/0.3413, allocations: 0.5639 MB / 1.229 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.3413, allocations: 8.031 kB / 1.229 GB, free: 5.406 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.375e-05/0.3414, allocations: 24.83 kB / 1.229 GB, free: 5.383 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.3417, allocations: 244.2 kB / 1.229 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.3417, allocations: 12.38 kB / 1.229 GB, free: 5.094 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.555e-05/0.3417, allocations: 8.375 kB / 1.23 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002604/0.342, allocations: 121.7 kB / 1.23 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.064e-06/0.342, allocations: 0 / 1.23 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.845e-05/0.342, allocations: 4 kB / 1.23 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3421, allocations: 3.938 kB / 1.23 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.3423, allocations: 63.95 kB / 1.23 GB, free: 4.891 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005986/0.3429, allocations: 420.6 kB / 1.23 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/0.3431, allocations: 98.45 kB / 1.23 GB, free: 4.324 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.3432, allocations: 72.97 kB / 1.23 GB, free: 4.25 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.3433, allocations: 7.984 kB / 1.23 GB, free: 4.242 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000245/0.3435, allocations: 174.7 kB / 1.23 GB, free: 4.047 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.3435, allocations: 4 kB / 1.23 GB, free: 4.043 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0007077/0.3442, allocations: 356.7 kB / 1.231 GB, free: 3.676 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.769e-05/0.3443, allocations: 166.2 kB / 1.231 GB, free: 3.477 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001664/0.3445, allocations: 175.2 kB / 1.231 GB, free: 3.293 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.3445, allocations: 33.7 kB / 1.231 GB, free: 3.254 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.898e-05/0.3446, allocations: 112.3 kB / 1.231 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.252e-05/0.3447, allocations: 27.75 kB / 1.231 GB, free: 3.109 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.9e-05/0.3447, allocations: 41.7 kB / 1.231 GB, free: 3.062 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.3448, allocations: 326.8 kB / 1.232 GB, free: 2.734 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.345, allocations: 55.89 kB / 1.232 GB, free: 2.68 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.3451, allocations: 106.8 kB / 1.232 GB, free: 2.551 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003227/0.3455, allocations: 320.9 kB / 1.232 GB, free: 2.176 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3455, allocations: 0 / 1.232 GB, free: 2.176 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005003/0.346, allocations: 340.2 kB / 1.232 GB, free: 1.812 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 7.368e-05/0.3461, allocations: 118.8 kB / 1.233 GB, free: 1.672 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.3461, allocations: 4.25 kB / 1.233 GB, free: 1.668 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.3461, allocations: 4 kB / 1.233 GB, free: 1.664 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.3462, allocations: 19.92 kB / 1.233 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.3463, allocations: 12.05 kB / 1.233 GB, free: 1.633 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.673e-05/0.3464, allocations: 11.94 kB / 1.233 GB, free: 1.621 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.3464, allocations: 12 kB / 1.233 GB, free: 1.609 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.0001496/0.3465, allocations: 198.5 kB / 1.233 GB, free: 1.395 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.448e-05/0.3466, allocations: 15.91 kB / 1.233 GB, free: 1.379 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.327e-05/0.3466, allocations: 21.39 kB / 1.233 GB, free: 1.348 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.3466, allocations: 0 / 1.233 GB, free: 1.348 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.3467, allocations: 4 kB / 1.233 GB, free: 1.344 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.3467, allocations: 0 / 1.233 GB, free: 1.344 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007287/0.3474, allocations: 0.5839 MB / 1.233 GB, free: 0.6914 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3474, allocations: 0 / 1.233 GB, free: 0.6914 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.085e-05/0.3475, allocations: 8 kB / 1.233 GB, free: 0.6836 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.3475, allocations: 11.92 kB / 1.233 GB, free: 0.6719 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.082e-05/0.3475, allocations: 12 kB / 1.233 GB, free: 0.6602 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3475, allocations: 0 / 1.233 GB, free: 0.6602 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3475, allocations: 3.938 kB / 1.233 GB, free: 0.6562 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005362/0.3481, allocations: 406.6 kB / 1.234 GB, free: 236 kB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.094e-05/0.3481, allocations: 85.06 kB / 1.234 GB, free: 132 kB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.556e-05/0.3482, allocations: 7.984 kB / 1.234 GB, free: 124 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.3483, allocations: 8 kB / 1.234 GB, free: 116 kB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.976e-05/0.3483, allocations: 19.92 kB / 1.234 GB, free: 96 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.3484, allocations: 4 kB / 1.234 GB, free: 92 kB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001163/0.3485, allocations: 132.3 kB / 1.234 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3485, allocations: 0 / 1.234 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002957/0.3488, allocations: 43.89 kB / 1.234 GB, free: 15.92 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,combiTimeTableWriter.str,combiTimeTableWriter.sampleTrigger,csvWriter.str,csvWriter.sampleTrigger) * Number of discrete states: 4 (combiTimeTableWriter.str,$whenCondition2,csvWriter.str,$whenCondition1) * 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: 2 * 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 Backend phase and start with SimCode phase: time 0.0002566/0.3491, allocations: 123 kB / 1.234 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004941/0.3496, allocations: 365.4 kB / 1.235 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3496, allocations: 0 / 1.235 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002353/0.3498, allocations: 202.8 kB / 1.235 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003174/0.3501, allocations: 26.81 kB / 1.235 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006103/0.3508, allocations: 303.6 kB / 1.235 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.3511, allocations: 0.7041 MB / 1.236 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.3e-05/0.3511, allocations: 20.53 kB / 1.236 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.513e-05/0.3512, allocations: 15.44 kB / 1.236 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of SimCode: time 3.71e-07/0.3512, allocations: 4 kB / 1.236 GB, free: 14.05 MB / 0.9981 GB Notification: Performance of Templates: time 0.005788/0.357, allocations: 2.078 MB / 1.238 GB, free: 12 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches