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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006779/0.006779, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001699/0.001699, allocations: 190.6 kB / 16.67 MB, free: 5.93 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.295/1.295, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.092/2.092, allocations: 390.3 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 63.91 kB / 0.9504 GB, free: 8.199 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.759/0.7609, allocations: 140.4 MB / 1.087 GB, free: 5.168 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002766/0.7637, allocations: 1.609 MB / 1.089 GB, free: 4.062 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009705/0.7647, allocations: 0.6064 MB / 1.09 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.188e-05/0.7648, allocations: 6.188 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001925/0.765, allocations: 20.14 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002346/0.7653, allocations: 41.45 kB / 1.09 GB, free: 3.605 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004146/0.7657, allocations: 118.7 kB / 1.09 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002918/0.766, allocations: 194 kB / 1.09 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.7661, allocations: 31.36 kB / 1.09 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.7663, allocations: 82.88 kB / 1.09 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.7665, allocations: 84.09 kB / 1.09 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.475e-05/0.7665, allocations: 12.62 kB / 1.09 GB, free: 3.371 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.512e-05/0.7666, allocations: 34.66 kB / 1.09 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001/0.7667, allocations: 32.33 kB / 1.09 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.7668, allocations: 71.8 kB / 1.09 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002846/0.7671, allocations: 169.2 kB / 1.09 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.7671, allocations: 0 / 1.09 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.262e-06/0.7671, allocations: 0 / 1.09 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.7671, allocations: 1.344 kB / 1.09 GB, free: 3.238 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.0006147/0.7678, allocations: 0.5575 MB / 1.091 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.7678, allocations: 9.812 kB / 1.091 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.973e-05/0.7679, allocations: 43.23 kB / 1.091 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.204e-05/0.7679, allocations: 20.38 kB / 1.091 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000274/0.7682, allocations: 238.1 kB / 1.091 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.7682, allocations: 11.72 kB / 1.091 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.567e-05/0.7683, allocations: 14.91 kB / 1.091 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002818/0.7686, allocations: 115.5 kB / 1.091 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.7686, allocations: 0 / 1.091 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.7686, allocations: 2.438 kB / 1.091 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.7686, allocations: 2.094 kB / 1.091 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002152/0.7688, allocations: 68.53 kB / 1.092 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006413/0.7695, allocations: 422 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002075/0.7697, allocations: 87.17 kB / 1.092 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.7699, allocations: 80.33 kB / 1.092 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.7699, allocations: 8.891 kB / 1.092 GB, free: 1.914 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000238/0.7702, allocations: 179.1 kB / 1.092 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.7702, allocations: 0 / 1.092 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0007011/0.7709, allocations: 350.5 kB / 1.093 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.497e-05/0.7709, allocations: 166.2 kB / 1.093 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.7711, allocations: 177.6 kB / 1.093 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/0.7711, allocations: 33.45 kB / 1.093 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.994e-05/0.7712, allocations: 111.5 kB / 1.093 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.7712, allocations: 37.23 kB / 1.093 GB, free: 1.125 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.901e-05/0.7713, allocations: 39.23 kB / 1.093 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.769e-05/0.7713, allocations: 327.9 kB / 1.093 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.7715, allocations: 50.44 kB / 1.094 GB, free: 0.7695 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.7716, allocations: 105.8 kB / 1.094 GB, free: 0.6875 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002786/0.7719, allocations: 312.3 kB / 1.094 GB, free: 404 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.7719, allocations: 1.031 kB / 1.094 GB, free: 404 kB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005478/0.7725, allocations: 344.2 kB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 7.83e-05/0.7726, allocations: 124.2 kB / 1.094 GB, free: 16.05 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.7726, allocations: 2.125 kB / 1.094 GB, free: 16.05 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.7726, allocations: 2.688 kB / 1.094 GB, free: 16.05 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.7727, allocations: 16.77 kB / 1.094 GB, free: 16.05 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.7727, allocations: 7.484 kB / 1.094 GB, free: 16.04 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.7728, allocations: 13.78 kB / 1.094 GB, free: 16.04 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.445e-05/0.7729, allocations: 17 kB / 1.094 GB, free: 16.03 MB / 0.8731 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.0001689/0.7731, allocations: 192.9 kB / 1.095 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.665e-05/0.7731, allocations: 22.25 kB / 1.095 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.634e-05/0.7731, allocations: 18.58 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.7731, allocations: 1.562 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.7732, allocations: 0.75 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.7732, allocations: 0.7969 kB / 1.095 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007458/0.7739, allocations: 0.5801 MB / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.7739, allocations: 0.7188 kB / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.084e-05/0.774, allocations: 14.73 kB / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.774, allocations: 8.688 kB / 1.095 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.558e-05/0.774, allocations: 11.08 kB / 1.095 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.7741, allocations: 1.484 kB / 1.095 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.7741, allocations: 3.938 kB / 1.095 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006126/0.7747, allocations: 400 kB / 1.096 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 4.745e-05/0.7747, allocations: 89.61 kB / 1.096 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.7748, allocations: 8.375 kB / 1.096 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001276/0.7749, allocations: 15.34 kB / 1.096 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.643e-05/0.775, allocations: 14.02 kB / 1.096 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/0.775, allocations: 7.797 kB / 1.096 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001123/0.7751, allocations: 129.8 kB / 1.096 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7751, allocations: 0 / 1.096 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003186/0.7754, allocations: 40.31 kB / 1.096 GB, free: 14.89 MB / 0.8731 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.0009758/0.7764, allocations: 0.9633 MB / 1.097 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005228/0.777, allocations: 361.5 kB / 1.097 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.777, allocations: 0 / 1.097 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002603/0.7772, allocations: 212.2 kB / 1.097 GB, free: 13.63 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.7776, allocations: 24.66 kB / 1.097 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.7801, allocations: 2.09 MB / 1.099 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.7804, allocations: 0.7091 MB / 1.1 GB, free: 11.29 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.433e-05/0.7805, allocations: 31.98 kB / 1.1 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.504e-05/0.7806, allocations: 33.7 kB / 1.1 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of SimCode: time 2.31e-07/0.7806, allocations: 0 / 1.1 GB, free: 11.25 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05741/0.838, allocations: 3.635 MB / 1.104 GB, free: 10.59 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.601/8.439, allocations: 7.344 kB / 1.104 GB, free: 10.59 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > 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/jenkins1/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