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.001116/0.001116, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001992/0.003108, allocations: 449.7 kB / 10.37 MB, free: 328 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.001173/0.001173, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001367/0.00254, allocations: 459.6 kB / 11.71 MB, free: 2.457 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.9695/0.9695, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09089/1.06, allocations: 53.66 MB / 243.3 MB, free: 15.58 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.856/1.856, allocations: 378.2 MB / 0.6076 GB, free: 7.812 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4556/2.311, allocations: 123.3 MB / 0.728 GB, free: 5.793 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.623e-06/1.623e-06, allocations: 0 / 0.7293 GB, free: 4.512 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.866e-05/2.028e-05, allocations: 6.438 kB / 0.7293 GB, free: 4.508 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002072/0.002092, allocations: 1.718 MB / 0.731 GB, free: 2.801 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0007567/0.002849, allocations: 0.6776 MB / 0.7317 GB, free: 2.125 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.663e-05/0.002916, allocations: 7.938 kB / 0.7317 GB, free: 2.117 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 9.852e-05/0.003014, allocations: 20.66 kB / 0.7317 GB, free: 2.098 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.003158, allocations: 51.02 kB / 0.7317 GB, free: 2.055 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002667/0.003425, allocations: 121.5 kB / 0.7319 GB, free: 1.938 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0002178/0.003643, allocations: 182.1 kB / 0.732 GB, free: 1.77 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.431e-05/0.003727, allocations: 14.78 kB / 0.732 GB, free: 1.75 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002102/0.003937, allocations: 152.5 kB / 0.7322 GB, free: 1.602 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 9.715e-05/0.004034, allocations: 71.84 kB / 0.7323 GB, free: 1.531 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.353e-05/0.004058, allocations: 13.44 kB / 0.7323 GB, free: 1.52 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.496e-05/0.004133, allocations: 31.94 kB / 0.7323 GB, free: 1.488 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 6.167e-05/0.004194, allocations: 27.91 kB / 0.7323 GB, free: 1.461 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 4.935e-05/0.004244, allocations: 36.59 kB / 0.7324 GB, free: 1.426 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.004413, allocations: 131.6 kB / 0.7325 GB, free: 1.297 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.251e-05/0.004426, allocations: 0.6875 kB / 0.7325 GB, free: 1.297 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.383e-06/0.004427, allocations: 0 / 0.7325 GB, free: 1.297 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.128e-05/0.004439, allocations: 5.719 kB / 0.7325 GB, free: 1.293 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.0005021/0.004941, allocations: 494.6 kB / 0.733 GB, free: 0.7617 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 2.75e-05/0.004968, allocations: 8.031 kB / 0.733 GB, free: 0.7539 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001503/0.005118, allocations: 106 kB / 0.7331 GB, free: 0.6328 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.005315, allocations: 175.6 kB / 0.7332 GB, free: 448 kB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.005327, allocations: 8.938 kB / 0.7333 GB, free: 440 kB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.607e-05/0.005343, allocations: 13.56 kB / 0.7333 GB, free: 428 kB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/0.005501, allocations: 162.2 kB / 0.7334 GB, free: 244 kB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.052e-06/0.005507, allocations: 192 / 0.7334 GB, free: 244 kB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-06/0.005517, allocations: 4.875 kB / 0.7334 GB, free: 240 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.005521, allocations: 3.938 kB / 0.7334 GB, free: 236 kB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.559e-05/0.005587, allocations: 88.25 kB / 0.7335 GB, free: 136 kB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003393/0.005926, allocations: 243.9 kB / 0.7337 GB, free: 15.88 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.069e-05/0.006017, allocations: 113.9 kB / 0.7339 GB, free: 15.74 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.538e-05/0.006072, allocations: 92.8 kB / 0.7339 GB, free: 15.64 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.006092, allocations: 1.812 kB / 0.7339 GB, free: 15.64 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001337/0.006226, allocations: 210.2 kB / 0.7341 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 7.92e-07/0.006226, allocations: 0 / 0.7341 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0002311/0.006457, allocations: 327.8 kB / 0.7345 GB, free: 15.03 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.227e-05/0.00652, allocations: 163.3 kB / 0.7346 GB, free: 14.84 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.869e-05/0.006608, allocations: 167.4 kB / 0.7348 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/0.006624, allocations: 29.7 kB / 0.7348 GB, free: 14.62 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.818e-05/0.006662, allocations: 100.8 kB / 0.7349 GB, free: 14.52 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.165e-05/0.006684, allocations: 31.72 kB / 0.7349 GB, free: 14.48 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.623e-05/0.00673, allocations: 46.62 kB / 0.735 GB, free: 14.43 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.815e-05/0.006808, allocations: 326.8 kB / 0.7353 GB, free: 14.11 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.822e-05/0.006876, allocations: 134.6 kB / 0.7354 GB, free: 13.95 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.144e-05/0.006958, allocations: 189.6 kB / 0.7356 GB, free: 13.71 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.007091, allocations: 277.2 kB / 0.7359 GB, free: 13.39 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.007094, allocations: 4 kB / 0.7359 GB, free: 13.38 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001936/0.007288, allocations: 357.9 kB / 0.7362 GB, free: 12.98 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.635e-05/0.007344, allocations: 120.9 kB / 0.7363 GB, free: 12.84 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.007349, allocations: 6.062 kB / 0.7363 GB, free: 12.83 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.466e-06/0.007358, allocations: 0 / 0.7363 GB, free: 12.83 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.326e-05/0.007431, allocations: 23.98 kB / 0.7363 GB, free: 12.81 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.085e-06/0.007434, allocations: 0 / 0.7363 GB, free: 12.81 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.504e-05/0.007479, allocations: 8 kB / 0.7364 GB, free: 12.8 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.007491, allocations: 8.75 kB / 0.7364 GB, free: 12.79 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 9.682e-05/0.007588, allocations: 201.3 kB / 0.7366 GB, free: 12.57 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.978e-05/0.007608, allocations: 15.98 kB / 0.7366 GB, free: 12.56 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.737e-05/0.007635, allocations: 25.39 kB / 0.7366 GB, free: 12.54 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.007638, allocations: 4.688 kB / 0.7366 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.00764, allocations: 1.812 kB / 0.7366 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.007643, allocations: 0 / 0.7366 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002485/0.007891, allocations: 405.4 kB / 0.737 GB, free: 12.09 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.007893, allocations: 0 / 0.737 GB, free: 12.09 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.293e-05/0.007926, allocations: 8 kB / 0.737 GB, free: 12.08 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.315e-05/0.007939, allocations: 25.02 kB / 0.737 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.00794, allocations: 0 / 0.737 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.00795, allocations: 4 kB / 0.737 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.007951, allocations: 0.5312 kB / 0.737 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.007952, allocations: 0 / 0.737 GB, free: 12.05 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001718/0.008124, allocations: 339 kB / 0.7373 GB, free: 11.68 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.189e-05/0.008146, allocations: 11.92 kB / 0.7374 GB, free: 11.67 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.695e-05/0.008193, allocations: 8.781 kB / 0.7374 GB, free: 11.66 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.919e-05/0.008222, allocations: 7.984 kB / 0.7374 GB, free: 11.65 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.008233, allocations: 9.906 kB / 0.7374 GB, free: 11.64 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.33e-05/0.008266, allocations: 47.91 kB / 0.7374 GB, free: 11.6 MB / 0.7136 GB Notification: Performance of sort global known variables: time 7e-08/0.008266, allocations: 0 / 0.7374 GB, free: 11.6 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001671/0.008433, allocations: 35.94 kB / 0.7375 GB, free: 11.56 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.0001798/0.008613, allocations: 123.3 kB / 0.7376 GB, free: 11.45 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002581/0.008871, allocations: 482.2 kB / 0.738 GB, free: 10.89 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.008878, allocations: 4 kB / 0.738 GB, free: 10.89 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.008982, allocations: 223 kB / 0.7383 GB, free: 10.63 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001694/0.009152, allocations: 36.75 kB / 0.7383 GB, free: 10.59 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000789/0.009941, allocations: 348.7 kB / 0.7386 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.048e-05/0.009981, allocations: 63.34 kB / 0.7387 GB, free: 10.13 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.509e-05/0.01002, allocations: 12.48 kB / 0.7387 GB, free: 10.12 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.01012, allocations: 95.33 kB / 0.7388 GB, free: 10.03 MB / 0.7136 GB Notification: Performance of SimCode: time 7.51e-07/0.01012, allocations: 2.438 kB / 0.7388 GB, free: 10.03 MB / 0.7136 GB Notification: Performance of Templates: time 0.004066/0.01419, allocations: 2.354 MB / 0.7411 GB, free: 7.832 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,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.849161706864834]