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.0007292/0.0007292, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00102/0.001749, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0006705/0.0006705, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009526/0.001623, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9261/0.9261, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07795/1.004, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.803/1.803, allocations: 378.4 MB / 0.6079 GB, free: 7.699 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4807/2.284, allocations: 123.3 MB / 0.7283 GB, free: 5.738 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 0.7296 GB, free: 4.43 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.226e-05/2.377e-05, allocations: 2.859 kB / 0.7296 GB, free: 4.426 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.005626/0.00565, allocations: 1.733 MB / 0.7313 GB, free: 2.715 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.000965/0.006615, allocations: 0.6736 MB / 0.732 GB, free: 2.043 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.014e-05/0.006685, allocations: 6.594 kB / 0.732 GB, free: 2.039 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0001002/0.006785, allocations: 28.72 kB / 0.732 GB, free: 2.012 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0001532/0.006938, allocations: 42.06 kB / 0.7321 GB, free: 1.977 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.007271, allocations: 120.6 kB / 0.7322 GB, free: 1.859 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0002484/0.00752, allocations: 181.7 kB / 0.7324 GB, free: 1.695 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 9.968e-05/0.007619, allocations: 22.72 kB / 0.7324 GB, free: 1.668 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002463/0.007866, allocations: 149.1 kB / 0.7325 GB, free: 1.523 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001153/0.007981, allocations: 75.78 kB / 0.7326 GB, free: 1.449 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 3.025e-05/0.008011, allocations: 12 kB / 0.7326 GB, free: 1.438 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 8.483e-05/0.008096, allocations: 24 kB / 0.7326 GB, free: 1.414 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 6.832e-05/0.008164, allocations: 29.62 kB / 0.7327 GB, free: 1.387 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 5.963e-05/0.008224, allocations: 39.94 kB / 0.7327 GB, free: 1.348 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.003299/0.01152, allocations: 135.5 kB / 0.7328 GB, free: 1.215 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.547e-05/0.01154, allocations: 0 / 0.7328 GB, free: 1.215 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.072e-06/0.01154, allocations: 0.8125 kB / 0.7328 GB, free: 1.215 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.416e-05/0.01155, allocations: 0 / 0.7328 GB, free: 1.215 MB / 0.698 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.0005837/0.01214, allocations: 495.1 kB / 0.7333 GB, free: 0.6836 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.01217, allocations: 12.67 kB / 0.7333 GB, free: 0.6719 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/0.01234, allocations: 102 kB / 0.7334 GB, free: 0.5547 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002382/0.01258, allocations: 174.7 kB / 0.7336 GB, free: 368 kB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.01259, allocations: 4.906 kB / 0.7336 GB, free: 364 kB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.01262, allocations: 16.91 kB / 0.7336 GB, free: 348 kB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001853/0.01281, allocations: 159.1 kB / 0.7337 GB, free: 168 kB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.01281, allocations: 192 / 0.7337 GB, free: 168 kB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.01283, allocations: 8.359 kB / 0.7338 GB, free: 160 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.131e-06/0.01284, allocations: 4.5 kB / 0.7338 GB, free: 156 kB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.051e-05/0.01291, allocations: 87.98 kB / 0.7338 GB, free: 56 kB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003921/0.0133, allocations: 247.6 kB / 0.7341 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001034/0.0134, allocations: 98.98 kB / 0.7342 GB, free: 15.68 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.275e-05/0.01347, allocations: 92.23 kB / 0.7343 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.01349, allocations: 4 kB / 0.7343 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001713/0.01366, allocations: 223.3 kB / 0.7345 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 1.272e-06/0.01366, allocations: 0 / 0.7345 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0003048/0.01397, allocations: 328.7 kB / 0.7348 GB, free: 14.95 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.01407, allocations: 273 kB / 0.7351 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.01419, allocations: 164.6 kB / 0.7352 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.03e-05/0.01421, allocations: 34.7 kB / 0.7352 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 4.481e-05/0.01425, allocations: 96.34 kB / 0.7353 GB, free: 14.31 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.929e-05/0.01428, allocations: 31.73 kB / 0.7354 GB, free: 14.28 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.708e-05/0.01434, allocations: 43.31 kB / 0.7354 GB, free: 14.23 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.003092/0.01743, allocations: 326.8 kB / 0.7357 GB, free: 13.9 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.639e-05/0.01753, allocations: 141.6 kB / 0.7359 GB, free: 13.74 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001054/0.01763, allocations: 185.6 kB / 0.736 GB, free: 13.51 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002993/0.01793, allocations: 273.2 kB / 0.7363 GB, free: 13.18 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.01793, allocations: 0 / 0.7363 GB, free: 13.18 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002567/0.01819, allocations: 357.9 kB / 0.7366 GB, free: 12.77 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 6.318e-05/0.01825, allocations: 120 kB / 0.7367 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.01826, allocations: 4 kB / 0.7367 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.01828, allocations: 4 kB / 0.7368 GB, free: 12.62 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.763e-05/0.01836, allocations: 21.23 kB / 0.7368 GB, free: 12.61 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.01837, allocations: 7.938 kB / 0.7368 GB, free: 12.6 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.138e-05/0.01843, allocations: 8 kB / 0.7368 GB, free: 12.59 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.01845, allocations: 9.234 kB / 0.7368 GB, free: 12.58 MB / 0.7136 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.0001178/0.01856, allocations: 193 kB / 0.737 GB, free: 12.37 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.005e-05/0.01859, allocations: 19.98 kB / 0.737 GB, free: 12.35 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.086e-05/0.01863, allocations: 22.44 kB / 0.737 GB, free: 12.33 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.01863, allocations: 0 / 0.737 GB, free: 12.33 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.01863, allocations: 0.5312 kB / 0.737 GB, free: 12.33 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.01863, allocations: 3.984 kB / 0.737 GB, free: 12.33 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003164/0.01895, allocations: 407 kB / 0.7374 GB, free: 11.88 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.01895, allocations: 0 / 0.7374 GB, free: 11.88 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.579e-05/0.019, allocations: 15.92 kB / 0.7374 GB, free: 11.87 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.298e-05/0.01901, allocations: 15.84 kB / 0.7374 GB, free: 11.85 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.01901, allocations: 1.219 kB / 0.7374 GB, free: 11.85 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.01903, allocations: 8 kB / 0.7375 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.01903, allocations: 3.984 kB / 0.7375 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.01903, allocations: 0.5 kB / 0.7375 GB, free: 11.84 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002298/0.01926, allocations: 335 kB / 0.7378 GB, free: 11.47 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.912e-05/0.01929, allocations: 7.938 kB / 0.7378 GB, free: 11.46 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.342e-05/0.01936, allocations: 12.75 kB / 0.7378 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.431e-05/0.0194, allocations: 3.984 kB / 0.7378 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.352e-05/0.01941, allocations: 12.67 kB / 0.7378 GB, free: 11.44 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 4.807e-05/0.01946, allocations: 50.72 kB / 0.7379 GB, free: 11.39 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6e-08/0.01946, allocations: 1.438 kB / 0.7379 GB, free: 11.39 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002367/0.0197, allocations: 39.94 kB / 0.7379 GB, free: 11.35 MB / 0.7136 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.000232/0.01993, allocations: 117.7 kB / 0.738 GB, free: 11.24 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.003335/0.02326, allocations: 491.8 kB / 0.7385 GB, free: 10.67 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/0.02328, allocations: 4 kB / 0.7385 GB, free: 10.67 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.02342, allocations: 223 kB / 0.7387 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002445/0.02366, allocations: 93.25 kB / 0.7388 GB, free: 10.31 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009751/0.02464, allocations: 336.7 kB / 0.7391 GB, free: 9.941 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.929e-05/0.02469, allocations: 71.33 kB / 0.7392 GB, free: 9.852 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 4.331e-05/0.02473, allocations: 8.719 kB / 0.7392 GB, free: 9.84 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.02487, allocations: 95.33 kB / 0.7393 GB, free: 9.746 MB / 0.7136 GB Notification: Performance of SimCode: time 1.103e-06/0.02487, allocations: 0 / 0.7393 GB, free: 9.746 MB / 0.7136 GB Notification: Performance of Templates: time 0.01094/0.03581, allocations: 2.339 MB / 0.7416 GB, free: 7.57 MB / 0.7136 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter/Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.703372147865593]