Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001733/0.001733, allocations: 80.52 kB / 19.18 MB, free: 2.527 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.002129/0.002129, allocations: 166.1 kB / 22.46 MB, free: 5.355 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.481/1.481, allocations: 177.1 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.06/3.06, allocations: 389 MB / 0.633 GB, free: 1.023 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 1 GB, free: 6.262 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.678e-05/3.856e-05, allocations: 13.17 kB / 1 GB, free: 6.25 MB / 0.9044 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003423/0.003461, allocations: 1.628 MB / 1.002 GB, free: 4.609 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.001457/0.004918, allocations: 0.6542 MB / 1.002 GB, free: 3.949 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.397e-05/0.005002, allocations: 7.938 kB / 1.002 GB, free: 3.941 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0001769/0.005179, allocations: 11.86 kB / 1.002 GB, free: 3.93 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0002474/0.005426, allocations: 47.77 kB / 1.002 GB, free: 3.883 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005627/0.005989, allocations: 131.5 kB / 1.003 GB, free: 3.754 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0003242/0.006313, allocations: 187.6 kB / 1.003 GB, free: 3.57 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.006424, allocations: 17.62 kB / 1.003 GB, free: 3.547 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000299/0.006723, allocations: 123.7 kB / 1.003 GB, free: 3.426 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.006871, allocations: 71.84 kB / 1.003 GB, free: 3.355 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.535e-05/0.006916, allocations: 12 kB / 1.003 GB, free: 3.344 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 9.812e-05/0.007014, allocations: 31.94 kB / 1.003 GB, free: 3.312 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.007122, allocations: 35.89 kB / 1.003 GB, free: 3.277 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.007228, allocations: 63.83 kB / 1.003 GB, free: 3.215 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0003246/0.007552, allocations: 187.5 kB / 1.003 GB, free: 3.031 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.007554, allocations: 0 / 1.003 GB, free: 3.031 MB / 0.9044 GB Notification: Performance of FrontEnd: time 6.21e-07/0.007555, allocations: 0 / 1.003 GB, free: 3.031 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.163e-05/0.007567, allocations: 7.938 kB / 1.003 GB, free: 3.023 MB / 0.9044 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.0008171/0.008384, allocations: 492.4 kB / 1.004 GB, free: 2.488 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.008418, allocations: 8.031 kB / 1.004 GB, free: 2.48 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001986/0.008616, allocations: 24.84 kB / 1.004 GB, free: 2.457 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003661/0.008983, allocations: 186.3 kB / 1.004 GB, free: 2.25 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/0.008998, allocations: 8.312 kB / 1.004 GB, free: 2.242 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.339e-05/0.009042, allocations: 24.3 kB / 1.004 GB, free: 2.219 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003475/0.009389, allocations: 165.6 kB / 1.004 GB, free: 2.039 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.009402, allocations: 192 / 1.004 GB, free: 2.039 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/0.009423, allocations: 8.125 kB / 1.004 GB, free: 2.031 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.009427, allocations: 0 / 1.004 GB, free: 2.031 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002729/0.0097, allocations: 127.3 kB / 1.004 GB, free: 1.895 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007109/0.01041, allocations: 344.3 kB / 1.005 GB, free: 1.527 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.01067, allocations: 141.9 kB / 1.005 GB, free: 1.367 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/0.01088, allocations: 124.2 kB / 1.005 GB, free: 1.23 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.0109, allocations: 8.031 kB / 1.005 GB, free: 1.223 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003331/0.01124, allocations: 238.1 kB / 1.005 GB, free: 0.9531 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.01124, allocations: 0 / 1.005 GB, free: 0.9531 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0009593/0.0122, allocations: 483.7 kB / 1.006 GB, free: 448 kB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.763e-05/0.0123, allocations: 166.2 kB / 1.006 GB, free: 244 kB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002098/0.01251, allocations: 184.1 kB / 1.006 GB, free: 48 kB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.01254, allocations: 29.7 kB / 1.006 GB, free: 12 kB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.01265, allocations: 108.4 kB / 1.006 GB, free: 15.9 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.808e-05/0.01269, allocations: 27.78 kB / 1.006 GB, free: 15.87 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.915e-05/0.01278, allocations: 45.7 kB / 1.006 GB, free: 15.82 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.01293, allocations: 322.8 kB / 1.006 GB, free: 15.5 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002356/0.01317, allocations: 162.8 kB / 1.007 GB, free: 15.31 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002825/0.01345, allocations: 209.6 kB / 1.007 GB, free: 15.06 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004037/0.01385, allocations: 312.9 kB / 1.007 GB, free: 14.69 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.01385, allocations: 4 kB / 1.007 GB, free: 14.69 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007087/0.01456, allocations: 474.8 kB / 1.007 GB, free: 14.17 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/0.01467, allocations: 115.1 kB / 1.008 GB, free: 14.03 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.01468, allocations: 4 kB / 1.008 GB, free: 14.03 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.0147, allocations: 0 / 1.008 GB, free: 14.03 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.01481, allocations: 28.17 kB / 1.008 GB, free: 14 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.01482, allocations: 3.938 kB / 1.008 GB, free: 14 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.01493, allocations: 19.95 kB / 1.008 GB, free: 13.98 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.01496, allocations: 7.984 kB / 1.008 GB, free: 13.97 MB / 0.92 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.0001996/0.01516, allocations: 196.7 kB / 1.008 GB, free: 13.76 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.672e-05/0.01521, allocations: 23.84 kB / 1.008 GB, free: 13.73 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.51e-05/0.01524, allocations: 17.45 kB / 1.008 GB, free: 13.72 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.01524, allocations: 0 / 1.008 GB, free: 13.72 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.01525, allocations: 0 / 1.008 GB, free: 13.72 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.01526, allocations: 7.922 kB / 1.008 GB, free: 13.71 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008726/0.01613, allocations: 0.5827 MB / 1.008 GB, free: 13.07 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.01613, allocations: 0 / 1.008 GB, free: 13.07 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.04e-05/0.0162, allocations: 11.98 kB / 1.008 GB, free: 13.06 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.0162, allocations: 0 / 1.008 GB, free: 13.06 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.507e-05/0.01623, allocations: 7.984 kB / 1.008 GB, free: 13.05 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.01623, allocations: 3.938 kB / 1.008 GB, free: 13.05 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.01623, allocations: 4 kB / 1.008 GB, free: 13.04 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007148/0.01695, allocations: 466.1 kB / 1.009 GB, free: 12.55 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 1.919e-05/0.01697, allocations: 11.91 kB / 1.009 GB, free: 12.54 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.119e-05/0.01701, allocations: 8 kB / 1.009 GB, free: 12.53 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.01712, allocations: 8 kB / 1.009 GB, free: 12.52 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.308e-05/0.01718, allocations: 11.98 kB / 1.009 GB, free: 12.51 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.067e-05/0.0172, allocations: 8 kB / 1.009 GB, free: 12.5 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001348/0.01733, allocations: 137.1 kB / 1.009 GB, free: 12.37 MB / 0.92 GB Notification: Performance of sort global known variables: time 6e-08/0.01733, allocations: 0 / 1.009 GB, free: 12.37 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003182/0.01765, allocations: 36 kB / 1.009 GB, free: 12.33 MB / 0.92 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.0003176/0.01797, allocations: 128 kB / 1.009 GB, free: 12.2 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0007277/0.0187, allocations: 0.5153 MB / 1.01 GB, free: 11.6 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.0187, allocations: 4 kB / 1.01 GB, free: 11.59 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0003158/0.01902, allocations: 250.8 kB / 1.01 GB, free: 11.31 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.01937, allocations: 27.86 kB / 1.01 GB, free: 11.29 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007586/0.02013, allocations: 345.6 kB / 1.01 GB, free: 10.91 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001102/0.02024, allocations: 93.31 kB / 1.01 GB, free: 10.8 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 7.147e-05/0.02031, allocations: 20.47 kB / 1.01 GB, free: 10.78 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.508e-05/0.02035, allocations: 16.5 kB / 1.01 GB, free: 10.76 MB / 0.92 GB Notification: Performance of SimCode: time 4.11e-07/0.02035, allocations: 0 / 1.01 GB, free: 10.76 MB / 0.92 GB Notification: Performance of Templates: time 0.006593/0.02695, allocations: 2.183 MB / 1.013 GB, free: 8.613 MB / 0.92 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.2901656255126]