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.0013/0.0013, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0009519/0.0009519, allocations: 181.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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.8777/0.8777, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.692/1.692, allocations: 389 MB / 0.6338 GB, free: 12.71 MB / 0.6042 GB " [Timeout remaining time 178] 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.323e-06/1.323e-06, allocations: 0 / 1.001 GB, free: 13.03 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.702e-05/1.835e-05, allocations: 2.281 kB / 1.001 GB, free: 13.03 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002104/0.002122, allocations: 1.631 MB / 1.002 GB, free: 11.39 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0007086/0.002831, allocations: 0.6504 MB / 1.003 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.94e-05/0.0029, allocations: 7.938 kB / 1.003 GB, free: 10.72 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001308/0.003031, allocations: 19.8 kB / 1.003 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0001725/0.003203, allocations: 43.77 kB / 1.003 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002964/0.0035, allocations: 127.6 kB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001912/0.003691, allocations: 191.5 kB / 1.003 GB, free: 10.35 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.338e-05/0.003784, allocations: 13.64 kB / 1.004 GB, free: 10.33 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001858/0.00397, allocations: 127.7 kB / 1.004 GB, free: 10.2 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 8.916e-05/0.004059, allocations: 67.84 kB / 1.004 GB, free: 10.14 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.397e-05/0.004083, allocations: 16 kB / 1.004 GB, free: 10.12 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.148e-05/0.004145, allocations: 31.94 kB / 1.004 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 6.453e-05/0.004209, allocations: 31.91 kB / 1.004 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 5.525e-05/0.004265, allocations: 55.83 kB / 1.004 GB, free: 10 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.004466, allocations: 191.5 kB / 1.004 GB, free: 9.816 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.673e-06/0.004468, allocations: 0 / 1.004 GB, free: 9.816 MB / 0.9636 GB Notification: Performance of FrontEnd: time 8.72e-07/0.004469, allocations: 0 / 1.004 GB, free: 9.816 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.897e-06/0.004472, allocations: 0 / 1.004 GB, free: 9.816 MB / 0.9636 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.0004766/0.004949, allocations: 0.4886 MB / 1.004 GB, free: 9.273 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.00498, allocations: 12.75 kB / 1.004 GB, free: 9.262 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.005097, allocations: 32.83 kB / 1.005 GB, free: 9.23 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002239/0.005321, allocations: 177.6 kB / 1.005 GB, free: 9.031 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.005335, allocations: 12.38 kB / 1.005 GB, free: 9.02 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.798e-05/0.005353, allocations: 8.375 kB / 1.005 GB, free: 9.012 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.005553, allocations: 173.6 kB / 1.005 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.005561, allocations: 192 / 1.005 GB, free: 8.824 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.005575, allocations: 8.125 kB / 1.005 GB, free: 8.816 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.005581, allocations: 8 kB / 1.005 GB, free: 8.809 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001248/0.005705, allocations: 127.3 kB / 1.005 GB, free: 8.672 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003914/0.006097, allocations: 336.4 kB / 1.005 GB, free: 8.312 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.00623, allocations: 138 kB / 1.005 GB, free: 8.156 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.006335, allocations: 124.2 kB / 1.006 GB, free: 8.02 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.006356, allocations: 7.922 kB / 1.006 GB, free: 8.012 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001722/0.006528, allocations: 242.1 kB / 1.006 GB, free: 7.738 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=10): time 1.042e-06/0.006529, allocations: 0 / 1.006 GB, free: 7.738 MB / 0.9636 GB Notification: Performance of matching and sorting (n=10): time 0.0004826/0.007011, allocations: 483.7 kB / 1.006 GB, free: 7.223 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.1e-05/0.007072, allocations: 170.2 kB / 1.006 GB, free: 7.02 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.00719, allocations: 180.6 kB / 1.007 GB, free: 6.832 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.007206, allocations: 29.7 kB / 1.007 GB, free: 6.797 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.909e-05/0.007255, allocations: 108.4 kB / 1.007 GB, free: 6.684 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.162e-05/0.007277, allocations: 27.75 kB / 1.007 GB, free: 6.656 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.587e-05/0.007323, allocations: 45.7 kB / 1.007 GB, free: 6.605 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.388e-05/0.007397, allocations: 326.8 kB / 1.007 GB, free: 6.277 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.007501, allocations: 162.8 kB / 1.007 GB, free: 6.094 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001222/0.007623, allocations: 217.6 kB / 1.007 GB, free: 5.832 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004418/0.008065, allocations: 309 kB / 1.008 GB, free: 5.469 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.008067, allocations: 0 / 1.008 GB, free: 5.469 MB / 0.9636 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003282/0.008395, allocations: 467.1 kB / 1.008 GB, free: 4.957 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 5.119e-05/0.008447, allocations: 122.8 kB / 1.008 GB, free: 4.812 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.008452, allocations: 4.062 kB / 1.008 GB, free: 4.809 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.008463, allocations: 4 kB / 1.008 GB, free: 4.805 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.681e-05/0.00853, allocations: 12 kB / 1.008 GB, free: 4.793 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.008537, allocations: 15.91 kB / 1.008 GB, free: 4.777 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.273e-05/0.00859, allocations: 15.95 kB / 1.008 GB, free: 4.762 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.008604, allocations: 8 kB / 1.008 GB, free: 4.754 MB / 0.9636 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.0001022/0.008706, allocations: 199 kB / 1.009 GB, free: 4.539 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.008731, allocations: 19.84 kB / 1.009 GB, free: 4.52 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.483e-05/0.008756, allocations: 21.47 kB / 1.009 GB, free: 4.496 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.008758, allocations: 0 / 1.009 GB, free: 4.496 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.008761, allocations: 0 / 1.009 GB, free: 4.496 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.008764, allocations: 288 / 1.009 GB, free: 4.496 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004309/0.009195, allocations: 0.5865 MB / 1.009 GB, free: 3.848 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.009196, allocations: 0 / 1.009 GB, free: 3.848 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.14e-05/0.009228, allocations: 19.92 kB / 1.009 GB, free: 3.828 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.00923, allocations: 0 / 1.009 GB, free: 3.828 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.009244, allocations: 8 kB / 1.009 GB, free: 3.82 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.009245, allocations: 4 kB / 1.009 GB, free: 3.816 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.009246, allocations: 0 / 1.009 GB, free: 3.816 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003234/0.009569, allocations: 466.1 kB / 1.01 GB, free: 3.32 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.055e-05/0.00958, allocations: 11.91 kB / 1.01 GB, free: 3.309 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.083e-05/0.0096, allocations: 4 kB / 1.01 GB, free: 3.305 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.327e-05/0.009654, allocations: 11.92 kB / 1.01 GB, free: 3.293 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.62e-05/0.0097, allocations: 11.98 kB / 1.01 GB, free: 3.281 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.006e-05/0.00971, allocations: 8 kB / 1.01 GB, free: 3.273 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 6.58e-05/0.009776, allocations: 137.1 kB / 1.01 GB, free: 3.141 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.009776, allocations: 4 kB / 1.01 GB, free: 3.137 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001887/0.009965, allocations: 32 kB / 1.01 GB, free: 3.105 MB / 0.9636 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.0001568/0.01012, allocations: 127.8 kB / 1.01 GB, free: 2.977 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003452/0.01047, allocations: 0.5193 MB / 1.011 GB, free: 2.371 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.203e-06/0.01047, allocations: 0 / 1.011 GB, free: 2.371 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.01061, allocations: 242.1 kB / 1.011 GB, free: 2.098 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.01082, allocations: 19.94 kB / 1.011 GB, free: 2.078 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004274/0.01124, allocations: 383.1 kB / 1.011 GB, free: 1.66 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.213e-05/0.01131, allocations: 98.22 kB / 1.011 GB, free: 1.543 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.913e-05/0.01134, allocations: 20.42 kB / 1.011 GB, free: 1.523 MB / 0.9636 GB Notification: Performance of SimCode: time 4.6e-07/0.01134, allocations: 0 / 1.011 GB, free: 1.523 MB / 0.9636 GB Notification: Performance of Templates: time 0.002609/0.01395, allocations: 2.236 MB / 1.013 GB, free: 15.3 MB / 0.9792 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: 6.9142554784193635]