Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001589/0.001589, allocations: 100.8 kB / 19.74 MB, free: 2.066 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.001731/0.001731, allocations: 217.4 kB / 23.04 MB, free: 4.844 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.496/1.496, allocations: 230.6 MB / 256.8 MB, free: 7.734 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.328/3.328, allocations: 0.49 GB / 0.7959 GB, free: 35.53 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter") [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: 73.91 kB / 1.155 GB, free: 25.19 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.3747, allocations: 176.1 MB / 1.327 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003375/0.3781, allocations: 1.63 MB / 1.329 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001422/0.3795, allocations: 0.6546 MB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.827e-05/0.3796, allocations: 4 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002049/0.3798, allocations: 15.8 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002791/0.3801, allocations: 51.77 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005617/0.3806, allocations: 123.7 kB / 1.33 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003408/0.381, allocations: 191.6 kB / 1.33 GB, free: 14.3 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.3811, allocations: 13.64 kB / 1.33 GB, free: 14.28 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002574/0.3814, allocations: 95.73 kB / 1.33 GB, free: 14.18 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.3815, allocations: 83.66 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.887e-05/0.3816, allocations: 19.94 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.214e-05/0.3817, allocations: 28 kB / 1.33 GB, free: 14.05 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.3818, allocations: 31.91 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.3819, allocations: 63.72 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003234/0.3822, allocations: 183.3 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3822, allocations: 0 / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.114e-06/0.3822, allocations: 0 / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.3822, allocations: 0 / 1.33 GB, free: 13.78 MB / 1.029 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.0009044/0.3831, allocations: 496.4 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.3832, allocations: 12.03 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002335/0.3834, allocations: 24.84 kB / 1.331 GB, free: 13.21 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003808/0.3838, allocations: 190.9 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.3838, allocations: 12.38 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.42e-05/0.3839, allocations: 12.38 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003627/0.3842, allocations: 173.1 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.3842, allocations: 0 / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.29e-05/0.3843, allocations: 8 kB / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.3843, allocations: 0 / 1.331 GB, free: 12.78 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002523/0.3845, allocations: 127.3 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007327/0.3852, allocations: 344.2 kB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002653/0.3855, allocations: 137.9 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.3857, allocations: 120.2 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.3857, allocations: 7.984 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000319/0.3861, allocations: 234.1 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.3861, allocations: 96 / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0008749/0.3869, allocations: 492 kB / 1.333 GB, free: 11.19 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.387, allocations: 162.2 kB / 1.333 GB, free: 10.99 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002031/0.3872, allocations: 175.6 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.3873, allocations: 41.58 kB / 1.333 GB, free: 10.76 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.54e-05/0.3874, allocations: 108.4 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.834e-05/0.3874, allocations: 31.73 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.573e-05/0.3875, allocations: 37.7 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001811/0.3877, allocations: 330.8 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000204/0.3879, allocations: 162.8 kB / 1.334 GB, free: 10.06 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002697/0.3881, allocations: 223.1 kB / 1.334 GB, free: 9.793 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003838/0.3885, allocations: 312.9 kB / 1.334 GB, free: 9.426 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3885, allocations: 7.922 kB / 1.334 GB, free: 9.418 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006539/0.3892, allocations: 463 kB / 1.334 GB, free: 8.91 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.3893, allocations: 118.8 kB / 1.335 GB, free: 8.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.3893, allocations: 0 / 1.335 GB, free: 8.77 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.3893, allocations: 8.25 kB / 1.335 GB, free: 8.762 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.3894, allocations: 19.92 kB / 1.335 GB, free: 8.742 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.3894, allocations: 4 kB / 1.335 GB, free: 8.738 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.3895, allocations: 15.94 kB / 1.335 GB, free: 8.723 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.489e-05/0.3896, allocations: 11.98 kB / 1.335 GB, free: 8.711 MB / 1.029 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.0001928/0.3898, allocations: 199.1 kB / 1.335 GB, free: 8.496 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.46e-05/0.3898, allocations: 15.91 kB / 1.335 GB, free: 8.48 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.474e-05/0.3899, allocations: 21.39 kB / 1.335 GB, free: 8.453 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.3899, allocations: 7.984 kB / 1.335 GB, free: 8.445 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.81e-06/0.3899, allocations: 0 / 1.335 GB, free: 8.445 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3899, allocations: 4 kB / 1.335 GB, free: 8.441 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007967/0.3907, allocations: 0.571 MB / 1.335 GB, free: 7.809 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.3907, allocations: 4 kB / 1.335 GB, free: 7.805 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.44e-05/0.3907, allocations: 15.98 kB / 1.335 GB, free: 7.789 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.3907, allocations: 0 / 1.335 GB, free: 7.789 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.3908, allocations: 7.984 kB / 1.335 GB, free: 7.781 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3908, allocations: 0 / 1.335 GB, free: 7.781 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3908, allocations: 0 / 1.335 GB, free: 7.781 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006489/0.3914, allocations: 478 kB / 1.336 GB, free: 7.273 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.713e-05/0.3914, allocations: 7.953 kB / 1.336 GB, free: 7.266 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.385e-05/0.3915, allocations: 7.938 kB / 1.336 GB, free: 7.258 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.3916, allocations: 12 kB / 1.336 GB, free: 7.246 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.637e-05/0.3916, allocations: 7.984 kB / 1.336 GB, free: 7.238 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-05/0.3916, allocations: 11.97 kB / 1.336 GB, free: 7.227 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001283/0.3918, allocations: 128.1 kB / 1.336 GB, free: 7.102 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3918, allocations: 0 / 1.336 GB, free: 7.102 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003066/0.3921, allocations: 47.83 kB / 1.336 GB, free: 7.055 MB / 1.029 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.0002931/0.3924, allocations: 122.2 kB / 1.336 GB, free: 6.934 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007109/0.3931, allocations: 0.5191 MB / 1.337 GB, free: 6.328 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.3931, allocations: 4.5 kB / 1.337 GB, free: 6.324 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002931/0.3934, allocations: 250.1 kB / 1.337 GB, free: 6.043 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.3937, allocations: 21.86 kB / 1.337 GB, free: 6.023 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007258/0.3944, allocations: 375.3 kB / 1.337 GB, free: 5.613 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00012/0.3945, allocations: 97.03 kB / 1.337 GB, free: 5.492 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.22e-05/0.3946, allocations: 19.44 kB / 1.338 GB, free: 5.477 MB / 1.029 GB Notification: Performance of SimCode: time 3.2e-07/0.3946, allocations: 4 kB / 1.338 GB, free: 5.473 MB / 1.029 GB Notification: Performance of Templates: time 0.004788/0.3994, allocations: 2.226 MB / 1.34 GB, free: 3.258 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 12.012355010956526]