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.001209/0.001209, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001018/0.001019, allocations: 193.1 kB / 16.25 MB, free: 6.621 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.21/1.21, allocations: 222.9 MB / 239.9 MB, free: 4.516 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.174/2.174, allocations: 390.2 MB / 0.6644 GB, free: 0.543 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001074/0.001074, allocations: 67.89 kB / 0.8122 GB, free: 14.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5327/0.5338, allocations: 140.4 MB / 0.9492 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002312/0.5361, allocations: 1.657 MB / 0.9509 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006919/0.5368, allocations: 0.6114 MB / 0.9515 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.944e-05/0.5369, allocations: 1.344 kB / 0.9515 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.5371, allocations: 19.72 kB / 0.9515 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001608/0.5372, allocations: 36.86 kB / 0.9515 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.5376, allocations: 105.5 kB / 0.9516 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001811/0.5378, allocations: 194.8 kB / 0.9518 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.85e-05/0.5379, allocations: 29.03 kB / 0.9518 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.538, allocations: 88.97 kB / 0.9519 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.914e-05/0.5381, allocations: 84.78 kB / 0.952 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.226e-05/0.5381, allocations: 17.19 kB / 0.952 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.745e-05/0.5382, allocations: 25.59 kB / 0.952 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.34e-05/0.5383, allocations: 30.92 kB / 0.9521 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.875e-05/0.5383, allocations: 68.98 kB / 0.9521 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.5385, allocations: 167.2 kB / 0.9523 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.5385, allocations: 0 / 0.9523 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.974e-06/0.5385, allocations: 3.984 kB / 0.9523 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.5385, allocations: 4.844 kB / 0.9523 GB, free: 6.832 MB / 0.7169 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.0004792/0.539, allocations: 0.5457 MB / 0.9528 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.5391, allocations: 15.12 kB / 0.9528 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.794e-05/0.5391, allocations: 41.48 kB / 0.9529 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.977e-05/0.5391, allocations: 15.94 kB / 0.9529 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.5394, allocations: 238.1 kB / 0.9531 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.5394, allocations: 10.91 kB / 0.9531 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.955e-05/0.5394, allocations: 15.47 kB / 0.9531 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002266/0.5396, allocations: 114.9 kB / 0.9533 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.5397, allocations: 5.562 kB / 0.9533 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.5397, allocations: 1.469 kB / 0.9533 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.5397, allocations: 5.281 kB / 0.9533 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.5399, allocations: 71.08 kB / 0.9533 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000483/0.5404, allocations: 416.3 kB / 0.9537 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001613/0.5405, allocations: 98.97 kB / 0.9538 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.5407, allocations: 76.41 kB / 0.9539 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.006e-05/0.5407, allocations: 1.156 kB / 0.9539 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002077/0.5409, allocations: 173.3 kB / 0.9541 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.5409, allocations: 1.125 kB / 0.9541 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0006155/0.5415, allocations: 355.3 kB / 0.9544 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.5416, allocations: 167.3 kB / 0.9546 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.5417, allocations: 177.2 kB / 0.9547 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.5417, allocations: 33.7 kB / 0.9548 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.122e-05/0.5418, allocations: 107.8 kB / 0.9549 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.028e-05/0.5418, allocations: 24.28 kB / 0.9549 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.754e-05/0.5419, allocations: 42.7 kB / 0.9549 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.182e-05/0.5419, allocations: 326.4 kB / 0.9552 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.5421, allocations: 53.64 kB / 0.9553 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001264/0.5422, allocations: 103.9 kB / 0.9554 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002308/0.5424, allocations: 313.8 kB / 0.9557 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.5424, allocations: 1.375 kB / 0.9557 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004117/0.5429, allocations: 348.7 kB / 0.956 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.094e-05/0.5429, allocations: 116.2 kB / 0.9561 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.5429, allocations: 2.359 kB / 0.9561 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.5429, allocations: 6.719 kB / 0.9561 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.737e-05/0.543, allocations: 24.52 kB / 0.9562 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.543, allocations: 11.59 kB / 0.9562 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.376e-05/0.5431, allocations: 16.16 kB / 0.9562 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.5432, allocations: 12.09 kB / 0.9562 GB, free: 3.301 MB / 0.7169 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.000102/0.5433, allocations: 195.9 kB / 0.9564 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.034e-05/0.5433, allocations: 18.12 kB / 0.9564 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.881e-05/0.5433, allocations: 16.83 kB / 0.9564 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.5434, allocations: 4 kB / 0.9564 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.5434, allocations: 1.281 kB / 0.9564 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.5434, allocations: 3.938 kB / 0.9564 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005525/0.5439, allocations: 0.5785 MB / 0.957 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.5439, allocations: 3.938 kB / 0.957 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.142e-05/0.544, allocations: 16.44 kB / 0.957 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.544, allocations: 5.422 kB / 0.957 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.544, allocations: 8.844 kB / 0.957 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.544, allocations: 0 / 0.957 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.544, allocations: 5.312 kB / 0.957 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004352/0.5445, allocations: 398.9 kB / 0.9574 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.175e-05/0.5445, allocations: 84.48 kB / 0.9575 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.627e-05/0.5446, allocations: 12.17 kB / 0.9575 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.5447, allocations: 11.06 kB / 0.9575 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.198e-05/0.5447, allocations: 14.86 kB / 0.9575 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.5447, allocations: 5.344 kB / 0.9575 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.961e-05/0.5448, allocations: 130.9 kB / 0.9577 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5448, allocations: 0 / 0.9577 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002699/0.5451, allocations: 38.56 kB / 0.9577 GB, free: 2.043 MB / 0.7169 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.0006759/0.5458, allocations: 0.9595 MB / 0.9586 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003689/0.5462, allocations: 369.7 kB / 0.959 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.5462, allocations: 0 / 0.959 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.5464, allocations: 201.1 kB / 0.9592 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.5467, allocations: 23.75 kB / 0.9592 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002083/0.5487, allocations: 2.137 MB / 0.9613 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/0.549, allocations: 0.7045 MB / 0.962 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.422e-05/0.549, allocations: 20.44 kB / 0.962 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.612e-05/0.5491, allocations: 36.89 kB / 0.962 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of SimCode: time 3.01e-07/0.5491, allocations: 0 / 0.962 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7227/1.272, allocations: 3.499 MB / 0.9655 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002337/1.272, allocations: 201 kB / 0.9656 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/3.037, allocations: 5.062 kB / 0.9657 GB, free: 12.11 MB / 0.7325 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