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.001898/0.001898, 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.002348/0.002348, allocations: 220.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.499/1.499, allocations: 230.6 MB / 256 MB, free: 7.984 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.311/3.311, allocations: 0.505 GB / 0.8101 GB, free: 22.07 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.002051/0.002051, allocations: 67.61 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3623, allocations: 180.2 MB / 1.353 GB, free: 8.484 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003166/0.3654, allocations: 1.663 MB / 1.354 GB, free: 6.812 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001302/0.3667, allocations: 0.6901 MB / 1.355 GB, free: 6.117 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.63e-05/0.3668, allocations: 7.938 kB / 1.355 GB, free: 6.109 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.367, allocations: 19.86 kB / 1.355 GB, free: 6.09 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0002381/0.3672, allocations: 47.69 kB / 1.355 GB, free: 6.043 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005439/0.3678, allocations: 131.7 kB / 1.355 GB, free: 5.914 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003142/0.3681, allocations: 183.6 kB / 1.356 GB, free: 5.734 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.3682, allocations: 21.91 kB / 1.356 GB, free: 5.711 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002363/0.3684, allocations: 87.81 kB / 1.356 GB, free: 5.625 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.3686, allocations: 87.66 kB / 1.356 GB, free: 5.539 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.988e-05/0.3686, allocations: 16 kB / 1.356 GB, free: 5.523 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 9.44e-05/0.3687, allocations: 27.98 kB / 1.356 GB, free: 5.496 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.222e-05/0.3688, allocations: 35.84 kB / 1.356 GB, free: 5.461 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.3689, allocations: 79.66 kB / 1.356 GB, free: 5.383 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002791/0.3692, allocations: 175.3 kB / 1.356 GB, free: 5.211 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.3692, allocations: 0 / 1.356 GB, free: 5.211 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.352e-06/0.3692, allocations: 0 / 1.356 GB, free: 5.211 MB / 1.045 GB Notification: Performance of Transformations before backend: time 7.834e-06/0.3692, allocations: 0 / 1.356 GB, free: 5.211 MB / 1.045 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.0008358/0.3701, allocations: 496.4 kB / 1.357 GB, free: 4.672 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.3701, allocations: 12.03 kB / 1.357 GB, free: 4.66 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.795e-05/0.3702, allocations: 42.73 kB / 1.357 GB, free: 4.609 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001907/0.3704, allocations: 24.84 kB / 1.357 GB, free: 4.586 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003396/0.3707, allocations: 186.3 kB / 1.357 GB, free: 4.379 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.3707, allocations: 12.38 kB / 1.357 GB, free: 4.367 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.04e-05/0.3707, allocations: 12.36 kB / 1.357 GB, free: 4.355 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.371, allocations: 117.5 kB / 1.357 GB, free: 4.234 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.371, allocations: 0 / 1.357 GB, free: 4.234 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.3711, allocations: 4 kB / 1.357 GB, free: 4.23 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3711, allocations: 0 / 1.357 GB, free: 4.23 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002034/0.3713, allocations: 79.92 kB / 1.357 GB, free: 4.152 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000694/0.372, allocations: 391.5 kB / 1.357 GB, free: 3.727 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001898/0.3722, allocations: 78.62 kB / 1.357 GB, free: 3.641 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.3723, allocations: 72.75 kB / 1.357 GB, free: 3.566 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.3723, allocations: 4 kB / 1.358 GB, free: 3.562 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000288/0.3726, allocations: 174.9 kB / 1.358 GB, free: 3.367 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.3726, allocations: 0 / 1.358 GB, free: 3.367 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0007798/0.3734, allocations: 360.8 kB / 1.358 GB, free: 2.996 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.3735, allocations: 166.2 kB / 1.358 GB, free: 2.797 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.3737, allocations: 175.6 kB / 1.358 GB, free: 2.613 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.078e-05/0.3738, allocations: 33.7 kB / 1.358 GB, free: 2.574 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.562e-05/0.3739, allocations: 112.3 kB / 1.358 GB, free: 2.457 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.415e-05/0.3739, allocations: 27.78 kB / 1.359 GB, free: 2.43 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.426e-05/0.374, allocations: 41.7 kB / 1.359 GB, free: 2.383 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001713/0.3742, allocations: 330.8 kB / 1.359 GB, free: 2.051 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.3743, allocations: 47.97 kB / 1.359 GB, free: 2.004 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001822/0.3745, allocations: 110.1 kB / 1.359 GB, free: 1.875 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003808/0.3749, allocations: 320.8 kB / 1.359 GB, free: 1.5 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.3749, allocations: 0 / 1.359 GB, free: 1.5 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005894/0.3755, allocations: 356.1 kB / 1.36 GB, free: 1.121 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.3756, allocations: 118.8 kB / 1.36 GB, free: 0.9805 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.3756, allocations: 288 / 1.36 GB, free: 0.9805 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.3756, allocations: 4 kB / 1.36 GB, free: 0.9766 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.3757, allocations: 19.98 kB / 1.36 GB, free: 0.957 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.3757, allocations: 11.88 kB / 1.36 GB, free: 0.9453 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.3758, allocations: 20.12 kB / 1.36 GB, free: 0.9258 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.3758, allocations: 12 kB / 1.36 GB, free: 0.9141 MB / 1.045 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.0001831/0.376, allocations: 197.2 kB / 1.36 GB, free: 0.6992 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.636e-05/0.3761, allocations: 15.91 kB / 1.36 GB, free: 0.6836 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.45e-05/0.3761, allocations: 17.39 kB / 1.36 GB, free: 0.6602 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.3761, allocations: 0 / 1.36 GB, free: 0.6602 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3761, allocations: 0 / 1.36 GB, free: 0.6602 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.3761, allocations: 4 kB / 1.36 GB, free: 0.6562 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007746/0.3769, allocations: 0.5632 MB / 1.361 GB, free: 32 kB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3769, allocations: 0 / 1.361 GB, free: 32 kB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.391e-05/0.377, allocations: 11.94 kB / 1.361 GB, free: 20 kB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.377, allocations: 4 kB / 1.361 GB, free: 16 kB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.377, allocations: 7.984 kB / 1.361 GB, free: 8 kB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.377, allocations: 0 / 1.361 GB, free: 8 kB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.377, allocations: 3.938 kB / 1.361 GB, free: 4 kB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006048/0.3776, allocations: 406.7 kB / 1.361 GB, free: 15.58 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.356e-05/0.3776, allocations: 19.84 kB / 1.361 GB, free: 15.56 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.59e-05/0.3776, allocations: 4 kB / 1.361 GB, free: 15.55 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001317/0.3778, allocations: 11.98 kB / 1.361 GB, free: 15.54 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.074e-05/0.3778, allocations: 19.86 kB / 1.361 GB, free: 15.52 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.3778, allocations: 4 kB / 1.361 GB, free: 15.52 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001237/0.378, allocations: 128.1 kB / 1.361 GB, free: 15.39 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.378, allocations: 0 / 1.361 GB, free: 15.39 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000296/0.3783, allocations: 43.94 kB / 1.361 GB, free: 15.35 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.001055/0.3793, allocations: 0.9594 MB / 1.362 GB, free: 14.36 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.00052/0.3798, allocations: 349.5 kB / 1.363 GB, free: 13.96 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3798, allocations: 0 / 1.363 GB, free: 13.96 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0002386/0.3801, allocations: 182.7 kB / 1.363 GB, free: 13.76 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.3804, allocations: 34.09 kB / 1.363 GB, free: 13.73 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.3831, allocations: 2.125 MB / 1.365 GB, free: 11.46 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.3835, allocations: 0.7158 MB / 1.365 GB, free: 10.72 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 7.507e-05/0.3836, allocations: 20.47 kB / 1.366 GB, free: 10.7 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.717e-05/0.3837, allocations: 35.42 kB / 1.366 GB, free: 10.66 MB / 1.061 GB Notification: Performance of SimCode: time 4.61e-07/0.3837, allocations: 3.938 kB / 1.366 GB, free: 10.66 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03226/0.4159, allocations: 3.834 MB / 1.369 GB, free: 6.969 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.92, allocations: 9.938 kB / 1.369 GB, free: 6.961 MB / 1.061 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.779880460817367]