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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_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.004692/0.004692, allocations: 102.9 kB / 15.73 MB, free: 6.035 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.001278/0.001278, allocations: 193.8 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.718/2.718, allocations: 461.9 MB / 0.7348 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 67.84 kB / 1.054 GB, free: 7.703 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3768/0.3783, allocations: 157.4 MB / 1.207 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003346/0.3817, allocations: 1.614 MB / 1.209 GB, free: 8.582 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001064/0.3827, allocations: 0.6121 MB / 1.209 GB, free: 7.965 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.3829, allocations: 4 kB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001665/0.383, allocations: 19.8 kB / 1.209 GB, free: 7.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002587/0.3833, allocations: 51.75 kB / 1.21 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004474/0.3838, allocations: 103.8 kB / 1.21 GB, free: 7.789 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002826/0.3841, allocations: 203.5 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.3842, allocations: 29.11 kB / 1.21 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000187/0.3844, allocations: 91.73 kB / 1.21 GB, free: 7.473 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.3846, allocations: 83.72 kB / 1.21 GB, free: 7.391 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.248e-05/0.3846, allocations: 12 kB / 1.21 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 8.809e-05/0.3847, allocations: 32 kB / 1.21 GB, free: 7.348 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.565e-05/0.3848, allocations: 27.91 kB / 1.21 GB, free: 7.32 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.3849, allocations: 75.66 kB / 1.21 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002433/0.3852, allocations: 163.7 kB / 1.21 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3852, allocations: 0 / 1.21 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3852, allocations: 4 kB / 1.21 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.858e-06/0.3852, allocations: 0 / 1.21 GB, free: 7.082 MB / 0.9669 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.000738/0.386, allocations: 0.5648 MB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.386, allocations: 8.625 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.165e-05/0.3861, allocations: 42.69 kB / 1.211 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.676e-05/0.3862, allocations: 24.77 kB / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/0.3865, allocations: 237.4 kB / 1.211 GB, free: 6.094 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.3866, allocations: 12.38 kB / 1.211 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.23e-05/0.3866, allocations: 12.38 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002743/0.3869, allocations: 117.5 kB / 1.211 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.3869, allocations: 0 / 1.211 GB, free: 5.949 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.545e-05/0.3869, allocations: 8 kB / 1.211 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.3869, allocations: 0 / 1.211 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001845/0.3871, allocations: 59.95 kB / 1.211 GB, free: 5.883 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006729/0.3878, allocations: 424.6 kB / 1.212 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002069/0.388, allocations: 82.53 kB / 1.212 GB, free: 5.328 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000158/0.3882, allocations: 72.81 kB / 1.212 GB, free: 5.254 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.972e-05/0.3882, allocations: 8.141 kB / 1.212 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002764/0.3885, allocations: 178.6 kB / 1.212 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 3.307e-06/0.3885, allocations: 96 / 1.212 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0007065/0.3892, allocations: 348.8 kB / 1.212 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.3894, allocations: 166.2 kB / 1.213 GB, free: 4.488 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001982/0.3896, allocations: 187 kB / 1.213 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.3896, allocations: 33.64 kB / 1.213 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.454e-05/0.3897, allocations: 112.4 kB / 1.213 GB, free: 4.133 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.228e-05/0.3897, allocations: 27.64 kB / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.072e-05/0.3898, allocations: 37.7 kB / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.3899, allocations: 334.7 kB / 1.213 GB, free: 3.727 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.3901, allocations: 51.95 kB / 1.213 GB, free: 3.676 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.3903, allocations: 102.8 kB / 1.213 GB, free: 3.551 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003336/0.3906, allocations: 317.2 kB / 1.214 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.3906, allocations: 0 / 1.214 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005189/0.3911, allocations: 348.2 kB / 1.214 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.967e-05/0.3912, allocations: 118.8 kB / 1.214 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3913, allocations: 0 / 1.214 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.3913, allocations: 4 kB / 1.214 GB, free: 2.664 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.3914, allocations: 19.92 kB / 1.214 GB, free: 2.645 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.3914, allocations: 7.984 kB / 1.214 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.3915, allocations: 15.91 kB / 1.214 GB, free: 2.621 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.918e-05/0.3915, allocations: 8 kB / 1.214 GB, free: 2.613 MB / 0.9669 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.0001766/0.3917, allocations: 205.2 kB / 1.214 GB, free: 2.391 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.404e-05/0.3918, allocations: 11.91 kB / 1.214 GB, free: 2.379 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.974e-05/0.3918, allocations: 17.39 kB / 1.214 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.3918, allocations: 0 / 1.214 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3918, allocations: 4 kB / 1.214 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3918, allocations: 0 / 1.214 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007173/0.3926, allocations: 0.5874 MB / 1.215 GB, free: 1.699 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3926, allocations: 0 / 1.215 GB, free: 1.699 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.758e-05/0.3926, allocations: 23.97 kB / 1.215 GB, free: 1.676 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3927, allocations: 4 kB / 1.215 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.3927, allocations: 8 kB / 1.215 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.3927, allocations: 0 / 1.215 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3927, allocations: 3.938 kB / 1.215 GB, free: 1.66 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005296/0.3932, allocations: 394.7 kB / 1.215 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.852e-05/0.3933, allocations: 92.92 kB / 1.216 GB, free: 1.137 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.76e-05/0.3933, allocations: 11.98 kB / 1.216 GB, free: 1.125 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.3934, allocations: 8 kB / 1.216 GB, free: 1.117 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.925e-05/0.3935, allocations: 15.92 kB / 1.216 GB, free: 1.102 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.3935, allocations: 4 kB / 1.216 GB, free: 1.098 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001065/0.3936, allocations: 131.2 kB / 1.216 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3936, allocations: 0 / 1.216 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002957/0.3939, allocations: 36 kB / 1.216 GB, free: 0.9336 MB / 0.9669 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.0009543/0.3949, allocations: 0.9604 MB / 1.217 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004607/0.3954, allocations: 361.4 kB / 1.217 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3954, allocations: 0 / 1.217 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000224/0.3956, allocations: 210.7 kB / 1.217 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.3959, allocations: 21.34 kB / 1.217 GB, free: 15.29 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/0.3984, allocations: 2.109 MB / 1.219 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.3988, allocations: 0.708 MB / 1.22 GB, free: 12.3 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.439e-05/0.3989, allocations: 24.47 kB / 1.22 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.123e-05/0.3989, allocations: 43.36 kB / 1.22 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of SimCode: time 2.41e-07/0.3989, allocations: 0 / 1.22 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02283/0.4218, allocations: 3.702 MB / 1.224 GB, free: 8.648 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.893/8.315, allocations: 7.797 kB / 1.224 GB, free: 8.641 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > 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