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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 218.3 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.524/1.524, allocations: 230.6 MB / 256 MB, free: 7.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.867/2.867, allocations: 476.7 MB / 0.7707 GB, free: 4.281 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002087, allocations: 65.81 kB / 1.117 GB, free: 40.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3448, allocations: 170 MB / 1.283 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003218/0.348, allocations: 1.645 MB / 1.285 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001236/0.3493, allocations: 0.6991 MB / 1.286 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.3494, allocations: 4 kB / 1.286 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001638/0.3496, allocations: 11.81 kB / 1.286 GB, free: 9.387 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002445/0.3498, allocations: 47.75 kB / 1.286 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005769/0.3504, allocations: 127.7 kB / 1.286 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003091/0.3507, allocations: 187.6 kB / 1.286 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.3508, allocations: 21.62 kB / 1.286 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002193/0.351, allocations: 95.62 kB / 1.286 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00017/0.3512, allocations: 91.7 kB / 1.286 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.01e-05/0.3512, allocations: 16 kB / 1.286 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.62e-05/0.3513, allocations: 32 kB / 1.286 GB, free: 8.777 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.396e-05/0.3514, allocations: 27.91 kB / 1.286 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001079/0.3515, allocations: 75.66 kB / 1.286 GB, free: 8.676 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002614/0.3518, allocations: 174.9 kB / 1.287 GB, free: 8.508 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3518, allocations: 4 kB / 1.287 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3518, allocations: 0 / 1.287 GB, free: 8.504 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.3518, allocations: 4 kB / 1.287 GB, free: 8.5 MB / 0.9825 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.0007185/0.3525, allocations: 492.4 kB / 1.287 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.3525, allocations: 12.03 kB / 1.287 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.911e-05/0.3526, allocations: 42.73 kB / 1.287 GB, free: 7.902 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001755/0.3528, allocations: 24.84 kB / 1.287 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003456/0.3531, allocations: 194.8 kB / 1.287 GB, free: 7.664 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.3531, allocations: 16.38 kB / 1.287 GB, free: 7.648 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.878e-05/0.3532, allocations: 12.38 kB / 1.287 GB, free: 7.637 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002763/0.3534, allocations: 109.6 kB / 1.287 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.3535, allocations: 3.984 kB / 1.287 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.757e-05/0.3535, allocations: 4 kB / 1.287 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.3535, allocations: 0 / 1.287 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.3537, allocations: 75.89 kB / 1.287 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007287/0.3544, allocations: 383.7 kB / 1.288 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002067/0.3546, allocations: 82.56 kB / 1.288 GB, free: 6.934 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.3548, allocations: 64.81 kB / 1.288 GB, free: 6.867 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.757e-05/0.3548, allocations: 4 kB / 1.288 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002913/0.3551, allocations: 182.7 kB / 1.288 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.412e-06/0.3551, allocations: 4 kB / 1.288 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.000778/0.3559, allocations: 360.9 kB / 1.289 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.356, allocations: 166.2 kB / 1.289 GB, free: 6.086 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/0.3562, allocations: 175.6 kB / 1.289 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.3562, allocations: 29.7 kB / 1.289 GB, free: 5.867 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.489e-05/0.3563, allocations: 112.4 kB / 1.289 GB, free: 5.75 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.713e-05/0.3563, allocations: 31.73 kB / 1.289 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.432e-05/0.3564, allocations: 45.7 kB / 1.289 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.3566, allocations: 322.8 kB / 1.289 GB, free: 5.344 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.3567, allocations: 59.89 kB / 1.289 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.3569, allocations: 106.6 kB / 1.29 GB, free: 5.16 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003756/0.3573, allocations: 308.9 kB / 1.29 GB, free: 4.797 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.3573, allocations: 4 kB / 1.29 GB, free: 4.793 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006163/0.3579, allocations: 352.3 kB / 1.29 GB, free: 4.418 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.344e-05/0.358, allocations: 118.8 kB / 1.29 GB, free: 4.277 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.358, allocations: 4 kB / 1.29 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.358, allocations: 0 / 1.29 GB, free: 4.273 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.3581, allocations: 19.92 kB / 1.29 GB, free: 4.254 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.3581, allocations: 4 kB / 1.29 GB, free: 4.25 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.3582, allocations: 15.92 kB / 1.29 GB, free: 4.234 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.349e-05/0.3583, allocations: 12 kB / 1.29 GB, free: 4.223 MB / 0.9825 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.0001867/0.3584, allocations: 203.6 kB / 1.291 GB, free: 4.004 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.692e-05/0.3585, allocations: 15.91 kB / 1.291 GB, free: 3.988 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.59e-05/0.3585, allocations: 21.39 kB / 1.291 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.3585, allocations: 4 kB / 1.291 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3585, allocations: 0 / 1.291 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3585, allocations: 0 / 1.291 GB, free: 3.953 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007865/0.3593, allocations: 0.5593 MB / 1.291 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3593, allocations: 4 kB / 1.291 GB, free: 3.328 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.521e-05/0.3594, allocations: 12 kB / 1.291 GB, free: 3.316 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.3594, allocations: 0 / 1.291 GB, free: 3.316 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.3594, allocations: 7.984 kB / 1.291 GB, free: 3.309 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3594, allocations: 3.938 kB / 1.291 GB, free: 3.305 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.3594, allocations: 3.938 kB / 1.291 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005993/0.36, allocations: 414.9 kB / 1.292 GB, free: 2.867 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.077e-05/0.36, allocations: 11.94 kB / 1.292 GB, free: 2.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.854e-05/0.3601, allocations: 8 kB / 1.292 GB, free: 2.848 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.3602, allocations: 11.98 kB / 1.292 GB, free: 2.836 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.418e-05/0.3602, allocations: 15.92 kB / 1.292 GB, free: 2.82 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.545e-05/0.3603, allocations: 4 kB / 1.292 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001174/0.3604, allocations: 133.8 kB / 1.292 GB, free: 2.688 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3604, allocations: 0 / 1.292 GB, free: 2.688 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003087/0.3607, allocations: 43.89 kB / 1.292 GB, free: 2.645 MB / 0.9825 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.00114/0.3618, allocations: 0.9724 MB / 1.293 GB, free: 1.641 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005322/0.3624, allocations: 357.4 kB / 1.293 GB, free: 1.242 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3624, allocations: 4 kB / 1.293 GB, free: 1.238 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002432/0.3626, allocations: 182.8 kB / 1.293 GB, free: 1.035 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.3629, allocations: 23.92 kB / 1.293 GB, free: 1.012 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003008/0.3659, allocations: 2.127 MB / 1.295 GB, free: 14.74 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003619/0.3663, allocations: 0.7156 MB / 1.296 GB, free: 14 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.206e-05/0.3664, allocations: 20.47 kB / 1.296 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.63e-05/0.3664, allocations: 35.42 kB / 1.296 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of SimCode: time 4.01e-07/0.3664, allocations: 0 / 1.296 GB, free: 13.95 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03164/0.3981, allocations: 3.835 MB / 1.3 GB, free: 10.27 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.9, allocations: 11.25 kB / 1.3 GB, free: 10.26 MB / 0.9981 GB " [Timeout remaining time 287] (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 --stepSize=0.004484 --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/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: 18.55484360898845]