Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_10_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.001135/0.001135, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001325/0.001324, allocations: 197.2 kB / 16.14 MB, free: 6.711 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.291/1.291, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.366/2.366, allocations: 437 MB / 0.71 GB, free: 5.387 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 59.91 kB / 0.8687 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5469/0.5481, allocations: 151.6 MB / 1.017 GB, free: 2.812 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003242/0.5514, allocations: 1.667 MB / 1.018 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.5525, allocations: 0.6429 MB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.591e-05/0.5526, allocations: 4 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001612/0.5527, allocations: 19.88 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0002045/0.553, allocations: 35.77 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004558/0.5534, allocations: 111.8 kB / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001937/0.5536, allocations: 155.7 kB / 1.019 GB, free: 172 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.5538, allocations: 25.11 kB / 1.019 GB, free: 144 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/0.5539, allocations: 71.77 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001431/0.5541, allocations: 79.78 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.241e-05/0.5541, allocations: 8 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.753e-05/0.5542, allocations: 27.92 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.518e-05/0.5543, allocations: 31.84 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.852e-05/0.5544, allocations: 67.7 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002232/0.5546, allocations: 153.8 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.5547, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.91e-07/0.5547, allocations: 7.938 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.5547, allocations: 0 / 1.02 GB, free: 15.7 MB / 0.7794 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.0006912/0.5554, allocations: 0.5582 MB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.5554, allocations: 8.031 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.096e-05/0.5555, allocations: 34.75 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.804e-05/0.5555, allocations: 20.75 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002855/0.5558, allocations: 236.2 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.5558, allocations: 8.375 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.176e-05/0.5559, allocations: 20.38 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002657/0.5561, allocations: 117.4 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.5562, allocations: 0 / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.5562, allocations: 4 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.5562, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/0.5564, allocations: 71.94 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006932/0.5571, allocations: 420.5 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.5573, allocations: 86.53 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.5575, allocations: 76.81 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.041e-05/0.5575, allocations: 0 / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003151/0.5578, allocations: 186.8 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.5578, allocations: 0 / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0006684/0.5585, allocations: 348.9 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.688e-05/0.5586, allocations: 170.2 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.5588, allocations: 171.2 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/0.5588, allocations: 37.7 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.626e-05/0.5589, allocations: 108.4 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.52e-05/0.559, allocations: 31.55 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.579e-05/0.5591, allocations: 37.72 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.5592, allocations: 334.8 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.5593, allocations: 47.97 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.5595, allocations: 102.8 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003337/0.5598, allocations: 320.8 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.5598, allocations: 0 / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005828/0.5604, allocations: 348.2 kB / 1.023 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.804e-05/0.5605, allocations: 118.8 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.5605, allocations: 4 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.987e-06/0.5605, allocations: 0 / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.851e-05/0.5607, allocations: 19.98 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.5607, allocations: 288 / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.897e-05/0.5608, allocations: 23.84 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.5608, allocations: 11.98 kB / 1.024 GB, free: 11.25 MB / 0.7794 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.0001702/0.561, allocations: 203 kB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.683e-05/0.561, allocations: 19.81 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.973e-05/0.5611, allocations: 17.41 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.5611, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.5611, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.5611, allocations: 3.984 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006884/0.5618, allocations: 0.5798 MB / 1.024 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.5618, allocations: 8 kB / 1.024 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.343e-05/0.5619, allocations: 11.98 kB / 1.024 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.5619, allocations: 3.984 kB / 1.024 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.5619, allocations: 4 kB / 1.024 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.5619, allocations: 0 / 1.024 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.5619, allocations: 11.92 kB / 1.024 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005261/0.5624, allocations: 402.6 kB / 1.025 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.064e-05/0.5625, allocations: 85.02 kB / 1.025 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.528e-05/0.5625, allocations: 8 kB / 1.025 GB, free: 9.773 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.5627, allocations: 4 kB / 1.025 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.616e-05/0.5627, allocations: 11.92 kB / 1.025 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.5627, allocations: 15.98 kB / 1.025 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001109/0.5628, allocations: 120.3 kB / 1.025 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5628, allocations: 0 / 1.025 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002786/0.5631, allocations: 43.84 kB / 1.025 GB, free: 9.582 MB / 0.7794 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.000868/0.564, allocations: 0.9566 MB / 1.026 GB, free: 8.59 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000436/0.5644, allocations: 369.4 kB / 1.026 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.5645, allocations: 0 / 1.026 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000222/0.5647, allocations: 198.8 kB / 1.027 GB, free: 7.961 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.565, allocations: 27.92 kB / 1.027 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.5673, allocations: 2.127 MB / 1.029 GB, free: 5.66 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000272/0.5676, allocations: 0.7121 MB / 1.029 GB, free: 4.922 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.948e-05/0.5676, allocations: 20.55 kB / 1.029 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.645e-05/0.5677, allocations: 35.42 kB / 1.029 GB, free: 4.867 MB / 0.7794 GB Notification: Performance of SimCode: time 2.71e-07/0.5677, allocations: 0 / 1.029 GB, free: 4.867 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4135/0.9812, allocations: 3.417 MB / 1.033 GB, free: 1.562 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002221/0.9814, allocations: 200.7 kB / 1.033 GB, free: 1.305 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.738/2.719, allocations: 0 / 1.033 GB, free: 1.305 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches