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.002001/0.002001, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002533/0.002533, allocations: 212.6 kB / 22.25 MB, free: 4.859 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.564/1.564, allocations: 230.6 MB / 256 MB, free: 7.801 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.348/3.348, allocations: 0.4892 GB / 0.7943 GB, free: 35.6 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.002155/0.002155, allocations: 64.66 kB / 1.154 GB, free: 25.58 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3615/0.3637, allocations: 176.1 MB / 1.326 GB, free: 1.863 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003199/0.3669, allocations: 1.633 MB / 1.327 GB, free: 228 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001274/0.3681, allocations: 0.6429 MB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.264e-05/0.3682, allocations: 7.938 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001766/0.3684, allocations: 23.78 kB / 1.328 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.3687, allocations: 55.75 kB / 1.328 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004981/0.3692, allocations: 119.7 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003214/0.3695, allocations: 183.6 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.3696, allocations: 17.62 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.3698, allocations: 87.81 kB / 1.328 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001552/0.37, allocations: 79.66 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.156e-05/0.37, allocations: 16 kB / 1.328 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001129/0.3701, allocations: 39.92 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.3703, allocations: 35.91 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.3704, allocations: 67.7 kB / 1.328 GB, free: 14.85 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003274/0.3707, allocations: 175.3 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3707, allocations: 0 / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.894e-06/0.3707, allocations: 0 / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.279e-05/0.3707, allocations: 0 / 1.329 GB, free: 14.68 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.0009632/0.3717, allocations: 498.6 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.3717, allocations: 8.031 kB / 1.329 GB, free: 14.13 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000213/0.3719, allocations: 28.83 kB / 1.329 GB, free: 14.1 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003879/0.3723, allocations: 186.9 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.3723, allocations: 8.375 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.255e-05/0.3724, allocations: 16.38 kB / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003427/0.3727, allocations: 177.1 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.3727, allocations: 0 / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.3728, allocations: 4 kB / 1.329 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.3728, allocations: 3.938 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002461/0.373, allocations: 131.3 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006709/0.3737, allocations: 344.2 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000253/0.3739, allocations: 133.9 kB / 1.33 GB, free: 13.01 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000203/0.3741, allocations: 132.2 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.3742, allocations: 4 kB / 1.33 GB, free: 12.86 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003263/0.3745, allocations: 242.2 kB / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.432e-06/0.3745, allocations: 0 / 1.33 GB, free: 12.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0008557/0.3753, allocations: 483.6 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.3755, allocations: 162.2 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/0.3757, allocations: 179.6 kB / 1.331 GB, free: 11.69 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.3757, allocations: 33.7 kB / 1.331 GB, free: 11.65 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.68e-05/0.3758, allocations: 104.4 kB / 1.331 GB, free: 11.54 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.788e-05/0.3758, allocations: 31.73 kB / 1.331 GB, free: 11.51 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.814e-05/0.3759, allocations: 41.69 kB / 1.331 GB, free: 11.46 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001668/0.3761, allocations: 326.8 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000211/0.3763, allocations: 166.8 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002494/0.3765, allocations: 217.6 kB / 1.332 GB, free: 10.69 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004051/0.3769, allocations: 316.9 kB / 1.332 GB, free: 10.32 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3769, allocations: 0 / 1.332 GB, free: 10.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006729/0.3776, allocations: 462.9 kB / 1.333 GB, free: 9.809 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.538e-05/0.3777, allocations: 118.8 kB / 1.333 GB, free: 9.668 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.3777, allocations: 4 kB / 1.333 GB, free: 9.664 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.3777, allocations: 256 / 1.333 GB, free: 9.664 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.3778, allocations: 19.98 kB / 1.333 GB, free: 9.645 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.3779, allocations: 7.938 kB / 1.333 GB, free: 9.637 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.378, allocations: 15.92 kB / 1.333 GB, free: 9.621 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.378, allocations: 11.94 kB / 1.333 GB, free: 9.609 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.0001784/0.3782, allocations: 197.2 kB / 1.333 GB, free: 9.395 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.492e-05/0.3782, allocations: 15.91 kB / 1.333 GB, free: 9.379 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.451e-05/0.3782, allocations: 17.67 kB / 1.333 GB, free: 9.355 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.3782, allocations: 4 kB / 1.333 GB, free: 9.352 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3782, allocations: 0 / 1.333 GB, free: 9.352 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.3782, allocations: 7.938 kB / 1.333 GB, free: 9.344 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007774/0.379, allocations: 0.5788 MB / 1.334 GB, free: 8.703 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.379, allocations: 8 kB / 1.334 GB, free: 8.695 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.472e-05/0.3791, allocations: 11.94 kB / 1.334 GB, free: 8.684 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3791, allocations: 0 / 1.334 GB, free: 8.684 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.3791, allocations: 11.98 kB / 1.334 GB, free: 8.672 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.3791, allocations: 0 / 1.334 GB, free: 8.672 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3791, allocations: 0 / 1.334 GB, free: 8.672 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006361/0.3798, allocations: 474.1 kB / 1.334 GB, free: 8.168 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.778e-05/0.3798, allocations: 7.953 kB / 1.334 GB, free: 8.16 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.563e-05/0.3798, allocations: 4 kB / 1.334 GB, free: 8.156 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.3799, allocations: 11.98 kB / 1.334 GB, free: 8.145 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.225e-05/0.38, allocations: 11.94 kB / 1.334 GB, free: 8.133 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.38, allocations: 7.984 kB / 1.334 GB, free: 8.125 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001197/0.3801, allocations: 128.1 kB / 1.334 GB, free: 8 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.3801, allocations: 0 / 1.334 GB, free: 8 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003052/0.3804, allocations: 47.81 kB / 1.335 GB, free: 7.953 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.0002841/0.3807, allocations: 131 kB / 1.335 GB, free: 7.824 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006469/0.3814, allocations: 0.5153 MB / 1.335 GB, free: 7.223 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3814, allocations: 4.438 kB / 1.335 GB, free: 7.219 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002756/0.3816, allocations: 242.2 kB / 1.335 GB, free: 6.945 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.382, allocations: 27.92 kB / 1.335 GB, free: 6.918 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006536/0.3826, allocations: 343.5 kB / 1.336 GB, free: 6.543 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001097/0.3827, allocations: 101 kB / 1.336 GB, free: 6.418 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.629e-05/0.3828, allocations: 24.47 kB / 1.336 GB, free: 6.395 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.729e-05/0.3828, allocations: 11.44 kB / 1.336 GB, free: 6.383 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.3828, allocations: 3.938 kB / 1.336 GB, free: 6.379 MB / 1.029 GB Notification: Performance of Templates: time 0.006538/0.3894, allocations: 2.255 MB / 1.338 GB, free: 4.168 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/jenkins/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: 9.286740271374583]