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.001895/0.001895, allocations: 103.6 kB / 18.95 MB, free: 2.691 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.002027/0.002027, allocations: 213.2 kB / 22.25 MB, free: 5.238 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.472/1.472, allocations: 230.6 MB / 256 MB, free: 7.805 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.837/2.837, allocations: 475.9 MB / 0.7699 GB, free: 4.773 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: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_11_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_11_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.002178/0.002178, allocations: 70.17 kB / 1.117 GB, free: 41.1 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3502, allocations: 170 MB / 1.283 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003212/0.3534, allocations: 1.636 MB / 1.285 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.3546, allocations: 0.6408 MB / 1.285 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.366e-05/0.3547, allocations: 7.938 kB / 1.285 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.3549, allocations: 11.86 kB / 1.285 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002458/0.3551, allocations: 51.75 kB / 1.285 GB, free: 9.629 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004701/0.3556, allocations: 119.7 kB / 1.285 GB, free: 9.512 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002984/0.3559, allocations: 191.6 kB / 1.286 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.356, allocations: 25.56 kB / 1.286 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.3562, allocations: 87.75 kB / 1.286 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.3564, allocations: 75.72 kB / 1.286 GB, free: 9.137 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.002e-05/0.3564, allocations: 16 kB / 1.286 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.3566, allocations: 39.98 kB / 1.286 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.3567, allocations: 35.84 kB / 1.286 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001/0.3568, allocations: 59.78 kB / 1.286 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002847/0.3571, allocations: 183.2 kB / 1.286 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3571, allocations: 0 / 1.286 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3571, allocations: 0 / 1.286 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.3571, allocations: 0 / 1.286 GB, free: 8.809 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.0007514/0.3578, allocations: 496.4 kB / 1.287 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.3579, allocations: 8.031 kB / 1.287 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001926/0.358, allocations: 32.83 kB / 1.287 GB, free: 8.23 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003942/0.3584, allocations: 182.5 kB / 1.287 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.3585, allocations: 12.38 kB / 1.287 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.319e-05/0.3585, allocations: 12.38 kB / 1.287 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003474/0.3588, allocations: 173.1 kB / 1.287 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.3589, allocations: 0 / 1.287 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.783e-05/0.3589, allocations: 4 kB / 1.287 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3589, allocations: 0 / 1.287 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002576/0.3591, allocations: 131.3 kB / 1.287 GB, free: 7.672 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000673/0.3598, allocations: 344.2 kB / 1.287 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002431/0.3601, allocations: 137.9 kB / 1.288 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/0.3602, allocations: 128.1 kB / 1.288 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.3603, allocations: 4 kB / 1.288 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003296/0.3606, allocations: 242.1 kB / 1.288 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.3606, allocations: 0 / 1.288 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0008762/0.3615, allocations: 487.7 kB / 1.288 GB, free: 6.211 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/0.3616, allocations: 166.2 kB / 1.289 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001868/0.3618, allocations: 175.6 kB / 1.289 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.3618, allocations: 33.7 kB / 1.289 GB, free: 5.789 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.494e-05/0.3619, allocations: 108.4 kB / 1.289 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.457e-05/0.3619, allocations: 27.75 kB / 1.289 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.328e-05/0.362, allocations: 37.7 kB / 1.289 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.3622, allocations: 330.8 kB / 1.289 GB, free: 5.273 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.3624, allocations: 162.8 kB / 1.289 GB, free: 5.09 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002514/0.3626, allocations: 220 kB / 1.29 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003785/0.363, allocations: 316.9 kB / 1.29 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.363, allocations: 4 kB / 1.29 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000653/0.3637, allocations: 462.9 kB / 1.29 GB, free: 3.945 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.428e-05/0.3638, allocations: 118.8 kB / 1.29 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3638, allocations: 4 kB / 1.29 GB, free: 3.801 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.3638, allocations: 256 / 1.29 GB, free: 3.801 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.3639, allocations: 19.98 kB / 1.29 GB, free: 3.781 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.3639, allocations: 4 kB / 1.29 GB, free: 3.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.364, allocations: 15.92 kB / 1.29 GB, free: 3.762 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.364, allocations: 12 kB / 1.291 GB, free: 3.75 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.000183/0.3642, allocations: 200 kB / 1.291 GB, free: 3.535 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.605e-05/0.3642, allocations: 15.91 kB / 1.291 GB, free: 3.52 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.551e-05/0.3643, allocations: 17.39 kB / 1.291 GB, free: 3.492 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3643, allocations: 4 kB / 1.291 GB, free: 3.488 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3643, allocations: 0 / 1.291 GB, free: 3.488 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.3643, allocations: 7.984 kB / 1.291 GB, free: 3.48 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000783/0.3651, allocations: 0.5868 MB / 1.291 GB, free: 2.832 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3651, allocations: 4 kB / 1.291 GB, free: 2.828 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.393e-05/0.3652, allocations: 8 kB / 1.291 GB, free: 2.82 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.3652, allocations: 3.984 kB / 1.291 GB, free: 2.816 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/0.3652, allocations: 8 kB / 1.291 GB, free: 2.809 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3652, allocations: 0 / 1.291 GB, free: 2.809 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3652, allocations: 0 / 1.291 GB, free: 2.809 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006603/0.3658, allocations: 474 kB / 1.292 GB, free: 2.305 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.882e-05/0.3659, allocations: 7.953 kB / 1.292 GB, free: 2.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.562e-05/0.3659, allocations: 4 kB / 1.292 GB, free: 2.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001205/0.366, allocations: 15.98 kB / 1.292 GB, free: 2.277 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.472e-05/0.3661, allocations: 4 kB / 1.292 GB, free: 2.273 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/0.3661, allocations: 11.97 kB / 1.292 GB, free: 2.262 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001265/0.3662, allocations: 129.8 kB / 1.292 GB, free: 2.137 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3662, allocations: 0 / 1.292 GB, free: 2.137 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003184/0.3665, allocations: 51.81 kB / 1.292 GB, free: 2.086 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.0002857/0.3668, allocations: 120.5 kB / 1.292 GB, free: 1.965 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007021/0.3675, allocations: 0.5192 MB / 1.293 GB, free: 1.359 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3675, allocations: 0.5 kB / 1.293 GB, free: 1.359 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002986/0.3678, allocations: 250.1 kB / 1.293 GB, free: 1.078 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.3681, allocations: 26.8 kB / 1.293 GB, free: 1.055 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007134/0.3689, allocations: 351.4 kB / 1.293 GB, free: 0.6758 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001198/0.369, allocations: 101 kB / 1.293 GB, free: 0.5586 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.897e-05/0.3691, allocations: 24.47 kB / 1.293 GB, free: 0.5352 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.003e-05/0.3691, allocations: 11.44 kB / 1.293 GB, free: 0.5234 MB / 0.9825 GB Notification: Performance of SimCode: time 3.11e-07/0.3691, allocations: 0 / 1.293 GB, free: 0.5234 MB / 0.9825 GB Notification: Performance of Templates: time 0.006199/0.3753, allocations: 2.257 MB / 1.296 GB, free: 14.32 MB / 0.9981 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 400] 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/jenkins/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: 8.888816649094224]