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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001217/0.001218, allocations: 104.9 kB / 16.4 MB, free: 6.379 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.001096/0.001096, allocations: 184.3 kB / 17.33 MB, free: 5.852 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.559/2.559, allocations: 469.4 MB / 0.7428 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 63.91 kB / 1.065 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7544/0.7557, allocations: 159.1 MB / 1.221 GB, free: 2.355 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00312/0.7589, allocations: 1.618 MB / 1.222 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.76, allocations: 0.6088 MB / 1.223 GB, free: 116 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.969e-05/0.7601, allocations: 4 kB / 1.223 GB, free: 112 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001767/0.7603, allocations: 19.8 kB / 1.223 GB, free: 92 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002425/0.7605, allocations: 50.88 kB / 1.223 GB, free: 44 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004261/0.761, allocations: 107.8 kB / 1.223 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002799/0.7613, allocations: 199.6 kB / 1.223 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.7614, allocations: 25.11 kB / 1.223 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001849/0.7616, allocations: 87.69 kB / 1.224 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001388/0.7617, allocations: 87.72 kB / 1.224 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.269e-05/0.7618, allocations: 16 kB / 1.224 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.083e-05/0.7619, allocations: 27.98 kB / 1.224 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 8.907e-05/0.762, allocations: 27.92 kB / 1.224 GB, free: 15.48 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.7621, allocations: 79.64 kB / 1.224 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002429/0.7623, allocations: 159.5 kB / 1.224 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.7623, allocations: 0 / 1.224 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.513e-06/0.7624, allocations: 0 / 1.224 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.7624, allocations: 0 / 1.224 GB, free: 15.24 MB / 0.9512 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.0007517/0.7631, allocations: 0.5618 MB / 1.224 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.7632, allocations: 12.62 kB / 1.224 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.359e-05/0.7632, allocations: 16.84 kB / 1.224 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003868/0.7636, allocations: 248 kB / 1.225 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.7637, allocations: 8.375 kB / 1.225 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.7637, allocations: 12.38 kB / 1.225 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002894/0.764, allocations: 117.7 kB / 1.225 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.764, allocations: 0 / 1.225 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.764, allocations: 3.984 kB / 1.225 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.7641, allocations: 11.94 kB / 1.225 GB, free: 14.15 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.7643, allocations: 67.89 kB / 1.225 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006706/0.7649, allocations: 412.6 kB / 1.225 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002001/0.7651, allocations: 90.56 kB / 1.225 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.7653, allocations: 80.81 kB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.7653, allocations: 0 / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.7656, allocations: 178.8 kB / 1.226 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.7656, allocations: 0 / 1.226 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10): time 0.0007271/0.7664, allocations: 356.8 kB / 1.226 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.761e-05/0.7665, allocations: 162.2 kB / 1.226 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.7666, allocations: 179.1 kB / 1.226 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.7667, allocations: 33.69 kB / 1.226 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.7e-05/0.7668, allocations: 104.4 kB / 1.226 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.841e-05/0.7668, allocations: 27.64 kB / 1.226 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.259e-05/0.7669, allocations: 41.7 kB / 1.227 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.767, allocations: 326.8 kB / 1.227 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001416/0.7672, allocations: 55.95 kB / 1.227 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.7673, allocations: 114.8 kB / 1.227 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000362/0.7677, allocations: 305 kB / 1.227 GB, free: 11.4 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.7677, allocations: 3.938 kB / 1.227 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005292/0.7682, allocations: 344.1 kB / 1.228 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 8.684e-05/0.7683, allocations: 118.8 kB / 1.228 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.7684, allocations: 0 / 1.228 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.7684, allocations: 4 kB / 1.228 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001142/0.7685, allocations: 23.92 kB / 1.228 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.7685, allocations: 8.25 kB / 1.228 GB, free: 10.85 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.7686, allocations: 19.83 kB / 1.228 GB, free: 10.83 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.7687, allocations: 11.94 kB / 1.228 GB, free: 10.82 MB / 0.9512 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.000173/0.7688, allocations: 201.1 kB / 1.228 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.242e-05/0.7689, allocations: 11.91 kB / 1.228 GB, free: 10.59 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.169e-05/0.7689, allocations: 17.67 kB / 1.228 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.7689, allocations: 0 / 1.228 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.7689, allocations: 0 / 1.228 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.7689, allocations: 3.938 kB / 1.228 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007178/0.7697, allocations: 0.5875 MB / 1.229 GB, free: 9.898 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.7697, allocations: 3.984 kB / 1.229 GB, free: 9.895 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.029e-05/0.7697, allocations: 8 kB / 1.229 GB, free: 9.887 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.7698, allocations: 0 / 1.229 GB, free: 9.887 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.426e-05/0.7698, allocations: 19.98 kB / 1.229 GB, free: 9.867 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.7698, allocations: 0 / 1.229 GB, free: 9.867 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.7698, allocations: 3.938 kB / 1.229 GB, free: 9.863 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005395/0.7703, allocations: 402.7 kB / 1.229 GB, free: 9.441 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.102e-05/0.7704, allocations: 88.92 kB / 1.229 GB, free: 9.336 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.582e-05/0.7705, allocations: 4 kB / 1.229 GB, free: 9.332 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.7706, allocations: 11.98 kB / 1.229 GB, free: 9.32 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.69e-05/0.7706, allocations: 7.938 kB / 1.229 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.92e-05/0.7707, allocations: 11.98 kB / 1.229 GB, free: 9.301 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 9.584e-05/0.7708, allocations: 132.3 kB / 1.229 GB, free: 9.172 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7708, allocations: 0 / 1.229 GB, free: 9.172 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002959/0.7711, allocations: 31.94 kB / 1.229 GB, free: 9.141 MB / 0.9512 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.0002457/0.7713, allocations: 128.8 kB / 1.229 GB, free: 9.012 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005031/0.7718, allocations: 369.4 kB / 1.23 GB, free: 8.602 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7718, allocations: 0 / 1.23 GB, free: 8.602 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002348/0.7721, allocations: 202.8 kB / 1.23 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.7724, allocations: 22.39 kB / 1.23 GB, free: 8.359 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005909/0.773, allocations: 325.9 kB / 1.23 GB, free: 8.012 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002892/0.7733, allocations: 0.7119 MB / 1.231 GB, free: 7.273 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.115e-05/0.7733, allocations: 15.44 kB / 1.231 GB, free: 7.258 MB / 0.9512 GB Notification: Performance of SimCode: time 2.91e-07/0.7733, allocations: 0 / 1.231 GB, free: 7.258 MB / 0.9512 GB Notification: Performance of Templates: time 0.004207/0.7776, allocations: 2.185 MB / 1.233 GB, free: 5.09 MB / 0.9512 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/jenkins1/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