Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001311/0.001311, 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.001516/0.001516, allocations: 212.6 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.49/1.49, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.238/3.238, allocations: 0.5107 GB / 0.8158 GB, free: 17.79 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_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.002094/0.002094, allocations: 73.27 kB / 1.186 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.369/0.3711, allocations: 181.9 MB / 1.363 GB, free: 14.09 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003738/0.3749, allocations: 1.633 MB / 1.365 GB, free: 12.44 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001769/0.3766, allocations: 0.6478 MB / 1.366 GB, free: 11.79 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001754/0.3768, allocations: 7.938 kB / 1.366 GB, free: 11.78 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0002292/0.377, allocations: 23.84 kB / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0003655/0.3774, allocations: 43.77 kB / 1.366 GB, free: 11.71 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006284/0.378, allocations: 123.7 kB / 1.366 GB, free: 11.59 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003844/0.3784, allocations: 179.6 kB / 1.366 GB, free: 11.42 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.3786, allocations: 17.91 kB / 1.366 GB, free: 11.39 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003015/0.3789, allocations: 103.7 kB / 1.366 GB, free: 11.29 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001826/0.3791, allocations: 75.72 kB / 1.366 GB, free: 11.22 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.603e-05/0.3791, allocations: 16 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 9.409e-05/0.3792, allocations: 35.98 kB / 1.366 GB, free: 11.17 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.533e-05/0.3793, allocations: 23.92 kB / 1.366 GB, free: 11.14 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 9.734e-05/0.3794, allocations: 71.7 kB / 1.366 GB, free: 11.07 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002881/0.3797, allocations: 179.3 kB / 1.366 GB, free: 10.9 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3797, allocations: 0 / 1.366 GB, free: 10.9 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3797, allocations: 0 / 1.366 GB, free: 10.9 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.3797, allocations: 0 / 1.366 GB, free: 10.9 MB / 1.061 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.0007442/0.3804, allocations: 496.3 kB / 1.367 GB, free: 10.36 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.3805, allocations: 12.03 kB / 1.367 GB, free: 10.35 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.058e-05/0.3805, allocations: 42.73 kB / 1.367 GB, free: 10.3 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001761/0.3807, allocations: 24.89 kB / 1.367 GB, free: 10.27 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.3811, allocations: 182.4 kB / 1.367 GB, free: 10.07 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.3811, allocations: 8.375 kB / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.527e-05/0.3812, allocations: 16.38 kB / 1.367 GB, free: 10.05 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003663/0.3815, allocations: 176.9 kB / 1.367 GB, free: 9.855 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.3815, allocations: 0 / 1.367 GB, free: 9.855 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.3816, allocations: 4 kB / 1.367 GB, free: 9.852 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.3816, allocations: 0 / 1.367 GB, free: 9.852 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000257/0.3818, allocations: 127.3 kB / 1.368 GB, free: 9.715 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007877/0.3826, allocations: 371.6 kB / 1.368 GB, free: 9.309 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002482/0.3829, allocations: 133.9 kB / 1.368 GB, free: 9.156 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002017/0.3831, allocations: 124.2 kB / 1.368 GB, free: 9.02 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.464e-05/0.3831, allocations: 4 kB / 1.368 GB, free: 9.016 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003229/0.3834, allocations: 254.2 kB / 1.368 GB, free: 8.73 MB / 1.061 GB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.3834, allocations: 0 / 1.368 GB, free: 8.73 MB / 1.061 GB Notification: Performance of matching and sorting (n=10): time 0.0008443/0.3843, allocations: 479.5 kB / 1.369 GB, free: 8.219 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.3844, allocations: 166.2 kB / 1.369 GB, free: 8.02 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001896/0.3846, allocations: 175.6 kB / 1.369 GB, free: 7.836 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.033e-05/0.3846, allocations: 33.7 kB / 1.369 GB, free: 7.797 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 8.697e-05/0.3847, allocations: 112.3 kB / 1.369 GB, free: 7.68 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.456e-05/0.3847, allocations: 27.78 kB / 1.369 GB, free: 7.652 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.948e-05/0.3848, allocations: 49.7 kB / 1.369 GB, free: 7.598 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001591/0.385, allocations: 330.8 kB / 1.37 GB, free: 7.266 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002035/0.3852, allocations: 158.8 kB / 1.37 GB, free: 7.086 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002385/0.3854, allocations: 213.6 kB / 1.37 GB, free: 6.828 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003712/0.3858, allocations: 316.9 kB / 1.37 GB, free: 6.457 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3858, allocations: 0 / 1.37 GB, free: 6.457 MB / 1.061 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006257/0.3864, allocations: 458.9 kB / 1.371 GB, free: 5.953 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 8.966e-05/0.3865, allocations: 119 kB / 1.371 GB, free: 5.812 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3865, allocations: 8 kB / 1.371 GB, free: 5.805 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3865, allocations: 0 / 1.371 GB, free: 5.805 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.3866, allocations: 19.98 kB / 1.371 GB, free: 5.785 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3866, allocations: 0 / 1.371 GB, free: 5.785 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001159/0.3868, allocations: 23.88 kB / 1.371 GB, free: 5.762 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.631e-05/0.3868, allocations: 15.94 kB / 1.371 GB, free: 5.746 MB / 1.061 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.0001663/0.3869, allocations: 189.2 kB / 1.371 GB, free: 5.539 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.051e-05/0.387, allocations: 19.91 kB / 1.371 GB, free: 5.52 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.398e-05/0.387, allocations: 21.38 kB / 1.371 GB, free: 5.492 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.387, allocations: 4 kB / 1.371 GB, free: 5.488 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.387, allocations: 0 / 1.371 GB, free: 5.488 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.387, allocations: 0 / 1.371 GB, free: 5.488 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007862/0.3878, allocations: 0.6021 MB / 1.372 GB, free: 4.812 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3878, allocations: 3.938 kB / 1.372 GB, free: 4.809 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.54e-05/0.3879, allocations: 15.92 kB / 1.372 GB, free: 4.793 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3879, allocations: 4 kB / 1.372 GB, free: 4.789 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.987e-05/0.3879, allocations: 4 kB / 1.372 GB, free: 4.785 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.3879, allocations: 80 / 1.372 GB, free: 4.785 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.3879, allocations: 15.91 kB / 1.372 GB, free: 4.77 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006234/0.3885, allocations: 466.1 kB / 1.372 GB, free: 4.273 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.317e-05/0.3886, allocations: 15.89 kB / 1.372 GB, free: 4.258 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.994e-05/0.3886, allocations: 12 kB / 1.372 GB, free: 4.246 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.3887, allocations: 8 kB / 1.372 GB, free: 4.238 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.373e-05/0.3888, allocations: 7.922 kB / 1.372 GB, free: 4.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-05/0.3888, allocations: 12 kB / 1.372 GB, free: 4.219 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001184/0.3889, allocations: 129.2 kB / 1.372 GB, free: 4.094 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3889, allocations: 0 / 1.372 GB, free: 4.094 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000296/0.3892, allocations: 43.94 kB / 1.372 GB, free: 4.051 MB / 1.061 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.001062/0.3903, allocations: 1.018 MB / 1.373 GB, free: 2.988 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000609/0.3909, allocations: 0.5193 MB / 1.374 GB, free: 2.383 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3909, allocations: 4 kB / 1.374 GB, free: 2.379 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002689/0.3912, allocations: 242.1 kB / 1.374 GB, free: 2.105 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.3915, allocations: 19.94 kB / 1.374 GB, free: 2.086 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003049/0.3945, allocations: 2.625 MB / 1.377 GB, free: 15.21 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.571e-05/0.3946, allocations: 93.19 kB / 1.377 GB, free: 15.1 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 7.4e-05/0.3947, allocations: 20.47 kB / 1.377 GB, free: 15.08 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.131e-05/0.3948, allocations: 39.42 kB / 1.377 GB, free: 15.04 MB / 1.076 GB Notification: Performance of SimCode: time 6.51e-07/0.3948, allocations: 0 / 1.377 GB, free: 15.04 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03405/0.4288, allocations: 4.333 MB / 1.381 GB, free: 10.88 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.95, allocations: 10.83 kB / 1.381 GB, free: 10.87 MB / 1.076 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.670745098032057]