Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_9_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_9_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.006539/0.006539, allocations: 102.1 kB / 15.73 MB, free: 6.438 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.001413/0.001413, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.308/2.308, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 62.95 kB / 0.9508 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3102, allocations: 140.4 MB / 1.088 GB, free: 1.523 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002668/0.3129, allocations: 1.617 MB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009151/0.3138, allocations: 0.6053 MB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.062e-05/0.3139, allocations: 4 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.3141, allocations: 15.81 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.3143, allocations: 51.69 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003533/0.3147, allocations: 119.7 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002529/0.3149, allocations: 195.6 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.3151, allocations: 36.84 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.3152, allocations: 79.81 kB / 1.091 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.3153, allocations: 87.72 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.388e-05/0.3154, allocations: 12 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 6.317e-05/0.3154, allocations: 28 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.267e-05/0.3155, allocations: 27.91 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.782e-05/0.3156, allocations: 75.59 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002226/0.3158, allocations: 167.5 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3159, allocations: 3.984 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3159, allocations: 0 / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.107e-06/0.3159, allocations: 4 kB / 1.091 GB, free: 14.39 MB / 0.8575 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.0006759/0.3166, allocations: 0.5563 MB / 1.091 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3166, allocations: 8.031 kB / 1.092 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.306e-05/0.3167, allocations: 24.73 kB / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003138/0.317, allocations: 233.3 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.317, allocations: 4.375 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.391e-05/0.3171, allocations: 16.38 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002732/0.3173, allocations: 129.6 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.3174, allocations: 0 / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.3174, allocations: 4 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.3174, allocations: 4 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001867/0.3176, allocations: 59.95 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006267/0.3182, allocations: 428.4 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001861/0.3184, allocations: 86.53 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.3186, allocations: 76.81 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.3186, allocations: 0 / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002575/0.3189, allocations: 186.9 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.3189, allocations: 0 / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0006905/0.3196, allocations: 352.7 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.664e-05/0.3197, allocations: 166.2 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.3199, allocations: 175.2 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.496e-05/0.3199, allocations: 33.7 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.552e-05/0.32, allocations: 112.3 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.685e-05/0.32, allocations: 31.64 kB / 1.094 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.458e-05/0.3201, allocations: 41.64 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3202, allocations: 330.8 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.3203, allocations: 51.95 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.3205, allocations: 102.8 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.3208, allocations: 312.9 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.3209, allocations: 0 / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004888/0.3214, allocations: 340.1 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.056e-05/0.3214, allocations: 119.1 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.3215, allocations: 4 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.3215, allocations: 7.984 kB / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.3216, allocations: 15.98 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.3216, allocations: 11.92 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.468e-05/0.3217, allocations: 15.91 kB / 1.095 GB, free: 9.984 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.793e-05/0.3217, allocations: 8.281 kB / 1.095 GB, free: 9.977 MB / 0.8575 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.0001467/0.3219, allocations: 194.6 kB / 1.095 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.349e-05/0.3219, allocations: 19.81 kB / 1.095 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.552e-05/0.322, allocations: 25.33 kB / 1.095 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.322, allocations: 0 / 1.095 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.322, allocations: 0 / 1.095 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.322, allocations: 0 / 1.095 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006932/0.3227, allocations: 0.5875 MB / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3227, allocations: 4 kB / 1.096 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.365e-05/0.3228, allocations: 11.98 kB / 1.096 GB, free: 9.051 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.3228, allocations: 0 / 1.096 GB, free: 9.051 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.3228, allocations: 12 kB / 1.096 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3228, allocations: 0 / 1.096 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3228, allocations: 7.875 kB / 1.096 GB, free: 9.031 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005264/0.3234, allocations: 398.6 kB / 1.096 GB, free: 8.613 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.177e-05/0.3234, allocations: 88.92 kB / 1.096 GB, free: 8.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.44e-05/0.3234, allocations: 11.98 kB / 1.096 GB, free: 8.496 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.3236, allocations: 12 kB / 1.096 GB, free: 8.484 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.481e-05/0.3236, allocations: 7.922 kB / 1.096 GB, free: 8.477 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.3236, allocations: 15.94 kB / 1.096 GB, free: 8.461 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 9.563e-05/0.3237, allocations: 128.3 kB / 1.096 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.853e-06/0.3237, allocations: 0 / 1.096 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002773/0.324, allocations: 35.94 kB / 1.096 GB, free: 8.301 MB / 0.8575 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.0002138/0.3242, allocations: 121.2 kB / 1.096 GB, free: 8.176 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004755/0.3247, allocations: 365.4 kB / 1.097 GB, free: 7.77 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3247, allocations: 0 / 1.097 GB, free: 7.77 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002303/0.325, allocations: 206.7 kB / 1.097 GB, free: 7.543 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002909/0.3253, allocations: 25.81 kB / 1.097 GB, free: 7.523 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005338/0.3258, allocations: 288.3 kB / 1.097 GB, free: 7.219 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.3261, allocations: 0.7041 MB / 1.098 GB, free: 6.488 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.017e-05/0.3262, allocations: 20.53 kB / 1.098 GB, free: 6.469 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.067e-05/0.3262, allocations: 11.44 kB / 1.098 GB, free: 6.457 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.3262, allocations: 4 kB / 1.098 GB, free: 6.453 MB / 0.8575 GB Notification: Performance of Templates: time 0.004761/0.331, allocations: 2.078 MB / 1.1 GB, free: 4.398 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches