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.001907/0.001907, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002162/0.002162, allocations: 213.5 kB / 22.24 MB, free: 5.258 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.482/1.482, allocations: 230.6 MB / 256 MB, free: 7.793 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.719/2.719, allocations: 476 MB / 0.7699 GB, free: 4.742 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.002101/0.002101, allocations: 65.64 kB / 1.117 GB, free: 41.15 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3603, allocations: 170 MB / 1.283 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003338/0.3637, allocations: 1.626 MB / 1.284 GB, free: 10.78 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001203/0.3649, allocations: 0.6369 MB / 1.285 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.072e-05/0.365, allocations: 7.938 kB / 1.285 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.3651, allocations: 15.86 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002948/0.3654, allocations: 47.75 kB / 1.285 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004632/0.3659, allocations: 123.7 kB / 1.285 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002826/0.3662, allocations: 191.5 kB / 1.285 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.3663, allocations: 21.62 kB / 1.285 GB, free: 9.738 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/0.3665, allocations: 91.75 kB / 1.285 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/0.3666, allocations: 75.72 kB / 1.285 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.601e-05/0.3667, allocations: 16 kB / 1.285 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.095e-05/0.3667, allocations: 35.98 kB / 1.285 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.704e-05/0.3668, allocations: 39.78 kB / 1.285 GB, free: 9.484 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.451e-05/0.3669, allocations: 59.78 kB / 1.285 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002594/0.3672, allocations: 182.8 kB / 1.286 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.3672, allocations: 0 / 1.286 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.472e-06/0.3672, allocations: 0 / 1.286 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.3672, allocations: 4 kB / 1.286 GB, free: 9.246 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.0007188/0.3679, allocations: 496.4 kB / 1.286 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.368, allocations: 8.031 kB / 1.286 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.157e-05/0.368, allocations: 38.75 kB / 1.286 GB, free: 8.652 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001713/0.3682, allocations: 28.83 kB / 1.286 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003236/0.3685, allocations: 178.5 kB / 1.286 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.994e-05/0.3685, allocations: 12.38 kB / 1.286 GB, free: 8.414 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.072e-05/0.3686, allocations: 16.38 kB / 1.286 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003294/0.3689, allocations: 180.9 kB / 1.287 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.3689, allocations: 0 / 1.287 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.3689, allocations: 4 kB / 1.287 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3689, allocations: 0 / 1.287 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002401/0.3692, allocations: 127.3 kB / 1.287 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006722/0.3698, allocations: 371.6 kB / 1.287 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002438/0.3701, allocations: 137.9 kB / 1.287 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001975/0.3703, allocations: 128.2 kB / 1.287 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.3703, allocations: 3.984 kB / 1.287 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003453/0.3706, allocations: 242.1 kB / 1.288 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.3706, allocations: 0 / 1.288 GB, free: 7.082 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0008926/0.3715, allocations: 479.8 kB / 1.288 GB, free: 6.57 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.3717, allocations: 162.5 kB / 1.288 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001941/0.3718, allocations: 179.6 kB / 1.288 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.762e-05/0.3719, allocations: 33.7 kB / 1.288 GB, free: 6.148 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.493e-05/0.372, allocations: 112.3 kB / 1.288 GB, free: 6.031 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.493e-05/0.372, allocations: 31.73 kB / 1.288 GB, free: 6 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.531e-05/0.3721, allocations: 41.7 kB / 1.289 GB, free: 5.953 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000181/0.3723, allocations: 326.8 kB / 1.289 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.3725, allocations: 162.8 kB / 1.289 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002646/0.3727, allocations: 215.6 kB / 1.289 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/0.3731, allocations: 308.9 kB / 1.289 GB, free: 4.82 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3731, allocations: 0 / 1.289 GB, free: 4.82 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006409/0.3738, allocations: 474.9 kB / 1.29 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.404e-05/0.3738, allocations: 118.8 kB / 1.29 GB, free: 4.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3739, allocations: 4 kB / 1.29 GB, free: 4.156 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.3739, allocations: 4 kB / 1.29 GB, free: 4.152 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.374, allocations: 15.98 kB / 1.29 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.374, allocations: 8.062 kB / 1.29 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.7e-05/0.3741, allocations: 16.19 kB / 1.29 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.3741, allocations: 11.98 kB / 1.29 GB, free: 4.102 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.00025/0.3744, allocations: 200 kB / 1.29 GB, free: 3.887 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.611e-05/0.3744, allocations: 19.91 kB / 1.29 GB, free: 3.867 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.471e-05/0.3744, allocations: 13.41 kB / 1.29 GB, free: 3.844 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3744, allocations: 3.984 kB / 1.29 GB, free: 3.84 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3744, allocations: 0 / 1.29 GB, free: 3.84 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.3744, allocations: 0 / 1.29 GB, free: 3.84 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008563/0.3753, allocations: 0.6134 MB / 1.291 GB, free: 3.152 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.3753, allocations: 8 kB / 1.291 GB, free: 3.145 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.391e-05/0.3754, allocations: 8 kB / 1.291 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3754, allocations: 0 / 1.291 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.3754, allocations: 7.984 kB / 1.291 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3754, allocations: 0 / 1.291 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3754, allocations: 3.938 kB / 1.291 GB, free: 3.125 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006553/0.3761, allocations: 466.1 kB / 1.291 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.764e-05/0.3761, allocations: 11.89 kB / 1.291 GB, free: 2.617 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.64e-05/0.3761, allocations: 8 kB / 1.291 GB, free: 2.609 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001233/0.3762, allocations: 15.98 kB / 1.291 GB, free: 2.594 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.3763, allocations: 11.92 kB / 1.291 GB, free: 2.582 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.085e-05/0.3763, allocations: 11.98 kB / 1.291 GB, free: 2.57 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000112/0.3764, allocations: 125.8 kB / 1.292 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3764, allocations: 0 / 1.292 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003009/0.3767, allocations: 47.88 kB / 1.292 GB, free: 2.402 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.001218/0.3779, allocations: 1.022 MB / 1.293 GB, free: 1.336 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006983/0.3786, allocations: 0.5152 MB / 1.293 GB, free: 0.7344 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3786, allocations: 0 / 1.293 GB, free: 0.7344 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003464/0.379, allocations: 242.6 kB / 1.293 GB, free: 472 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.3793, allocations: 30.03 kB / 1.293 GB, free: 444 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003076/0.3824, allocations: 2.619 MB / 1.296 GB, free: 13.56 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.766e-05/0.3825, allocations: 101 kB / 1.296 GB, free: 13.45 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.853e-05/0.3825, allocations: 24.41 kB / 1.296 GB, free: 13.42 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.421e-05/0.3826, allocations: 39.42 kB / 1.296 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of SimCode: time 4.41e-07/0.3826, allocations: 0 / 1.296 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03898/0.4216, allocations: 4.338 MB / 1.3 GB, free: 9.223 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.81, allocations: 4 kB / 1.3 GB, free: 9.219 MB / 0.9981 GB " [Timeout remaining time 288] (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.418745995964855]