Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 111.3 kB / 17.6 MB, free: 4.664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 186.8 kB / 20.78 MB, free: 1.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 225.6 MB / 249.4 MB, free: 3.301 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.696/2.696, allocations: 476.7 MB / 0.7629 GB, free: 15.09 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002125/0.002125, allocations: 63.89 kB / 1.107 GB, free: 5.059 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9427/0.9448, allocations: 168.7 MB / 1.272 GB, free: 7.676 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002788/0.9476, allocations: 1.644 MB / 1.273 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0009062/0.9485, allocations: 0.6233 MB / 1.274 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.232e-05/0.9486, allocations: 1.062 kB / 1.274 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.9487, allocations: 21.8 kB / 1.274 GB, free: 6.121 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001962/0.9489, allocations: 48.11 kB / 1.274 GB, free: 6.09 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.9493, allocations: 111.3 kB / 1.274 GB, free: 6.031 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002404/0.9495, allocations: 181.5 kB / 1.274 GB, free: 5.953 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.9496, allocations: 18.45 kB / 1.274 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.9498, allocations: 86.05 kB / 1.274 GB, free: 5.91 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.9499, allocations: 85.25 kB / 1.274 GB, free: 5.875 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.89e-05/0.9499, allocations: 13.53 kB / 1.274 GB, free: 5.875 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.046e-05/0.95, allocations: 34.38 kB / 1.274 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.905e-05/0.9501, allocations: 28.78 kB / 1.274 GB, free: 5.852 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 9.273e-05/0.9502, allocations: 79.77 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002628/0.9505, allocations: 164.9 kB / 1.275 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.9505, allocations: 0.9375 kB / 1.275 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.493e-06/0.9505, allocations: 0 / 1.275 GB, free: 5.742 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.182e-05/0.9505, allocations: 0 / 1.275 GB, free: 5.742 MB / 0.9981 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.0006311/0.9511, allocations: 0.5576 MB / 1.275 GB, free: 5.195 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.9512, allocations: 11.77 kB / 1.275 GB, free: 5.195 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.444e-05/0.9512, allocations: 41.97 kB / 1.275 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.761e-05/0.9513, allocations: 24.81 kB / 1.275 GB, free: 5.137 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002824/0.9515, allocations: 238.7 kB / 1.275 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.9516, allocations: 6.5 kB / 1.275 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.476e-05/0.9516, allocations: 15.28 kB / 1.275 GB, free: 4.902 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002924/0.9519, allocations: 111.6 kB / 1.276 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.9519, allocations: 0.9062 kB / 1.276 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.9519, allocations: 6.656 kB / 1.276 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.9519, allocations: 8.625 kB / 1.276 GB, free: 4.84 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002102/0.9521, allocations: 69.31 kB / 1.276 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005866/0.9527, allocations: 423.2 kB / 1.276 GB, free: 4.492 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001926/0.9529, allocations: 76.39 kB / 1.276 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.9531, allocations: 70.78 kB / 1.276 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.689e-05/0.9531, allocations: 2.062 kB / 1.276 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000246/0.9533, allocations: 175.2 kB / 1.276 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.9533, allocations: 0 / 1.276 GB, free: 4.297 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0007563/0.9541, allocations: 362.1 kB / 1.277 GB, free: 4.125 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.395e-05/0.9542, allocations: 166.5 kB / 1.277 GB, free: 3.934 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.9543, allocations: 181.4 kB / 1.277 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.9543, allocations: 29.86 kB / 1.277 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.585e-05/0.9544, allocations: 111.9 kB / 1.277 GB, free: 3.664 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.721e-05/0.9544, allocations: 30.14 kB / 1.277 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.133e-05/0.9545, allocations: 39.11 kB / 1.277 GB, free: 3.617 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.803e-05/0.9546, allocations: 326.6 kB / 1.278 GB, free: 3.297 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000144/0.9547, allocations: 55.03 kB / 1.278 GB, free: 3.281 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.9549, allocations: 112.6 kB / 1.278 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002786/0.9551, allocations: 312.8 kB / 1.278 GB, free: 2.898 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.9551, allocations: 1 kB / 1.278 GB, free: 2.898 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004996/0.9556, allocations: 346.5 kB / 1.278 GB, free: 2.684 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5e-05/0.9557, allocations: 122.6 kB / 1.278 GB, free: 2.555 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.9557, allocations: 1.75 kB / 1.278 GB, free: 2.555 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.9557, allocations: 3.062 kB / 1.278 GB, free: 2.555 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.9558, allocations: 18.88 kB / 1.278 GB, free: 2.551 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.9558, allocations: 2.875 kB / 1.278 GB, free: 2.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.972e-05/0.9559, allocations: 23.66 kB / 1.278 GB, free: 2.539 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.956, allocations: 12.19 kB / 1.278 GB, free: 2.535 MB / 0.9981 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.0001168/0.9561, allocations: 198.2 kB / 1.279 GB, free: 2.344 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.499e-05/0.9561, allocations: 14.45 kB / 1.279 GB, free: 2.34 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.812e-05/0.9561, allocations: 18.72 kB / 1.279 GB, free: 2.316 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.9561, allocations: 0.8125 kB / 1.279 GB, free: 2.316 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.9562, allocations: 2.828 kB / 1.279 GB, free: 2.316 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.9562, allocations: 7.922 kB / 1.279 GB, free: 2.309 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006818/0.9568, allocations: 0.591 MB / 1.279 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.9568, allocations: 0 / 1.279 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.678e-05/0.9569, allocations: 11.41 kB / 1.279 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.9569, allocations: 0.9062 kB / 1.279 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.792e-05/0.9569, allocations: 11.67 kB / 1.279 GB, free: 1.859 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.9569, allocations: 0 / 1.279 GB, free: 1.859 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.9569, allocations: 4.906 kB / 1.279 GB, free: 1.855 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005728/0.9575, allocations: 419.2 kB / 1.28 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.054e-05/0.9575, allocations: 86.22 kB / 1.28 GB, free: 1.488 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.713e-05/0.9576, allocations: 3.781 kB / 1.28 GB, free: 1.488 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001152/0.9577, allocations: 9.906 kB / 1.28 GB, free: 1.488 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.337e-05/0.9578, allocations: 12.36 kB / 1.28 GB, free: 1.48 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.096e-05/0.9578, allocations: 8.078 kB / 1.28 GB, free: 1.48 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001017/0.9579, allocations: 129.9 kB / 1.28 GB, free: 1.391 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6e-08/0.9579, allocations: 0 / 1.28 GB, free: 1.391 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003156/0.9582, allocations: 43.23 kB / 1.28 GB, free: 1.379 MB / 0.9981 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.001013/0.9592, allocations: 0.9599 MB / 1.281 GB, free: 16.59 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005469/0.9598, allocations: 357.8 kB / 1.281 GB, free: 16.3 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.9598, allocations: 0 / 1.281 GB, free: 16.3 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002463/0.96, allocations: 177.8 kB / 1.281 GB, free: 16.16 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003188/0.9603, allocations: 27.61 kB / 1.281 GB, free: 16.14 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002609/0.9629, allocations: 2.122 MB / 1.284 GB, free: 14.47 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.9633, allocations: 0.7096 MB / 1.284 GB, free: 13.77 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 7.549e-05/0.9633, allocations: 20.41 kB / 1.284 GB, free: 13.77 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.651e-05/0.9634, allocations: 36.97 kB / 1.284 GB, free: 13.75 MB / 1.014 GB Notification: Performance of SimCode: time 4.51e-07/0.9634, allocations: 3.938 kB / 1.284 GB, free: 13.74 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02812/0.9915, allocations: 3.672 MB / 1.288 GB, free: 13.09 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.246/9.238, allocations: 8.234 kB / 1.288 GB, free: 13.09 MB / 1.014 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.154371281998465]