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.0009221/0.0009221, allocations: 81.95 kB / 20.68 MB, free: 3.816 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.0008773/0.0008773, allocations: 181 kB / 24.09 MB, free: 420 kB / 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.8987/0.8987, allocations: 177.1 MB / 204.5 MB, free: 5.516 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.749/1.749, allocations: 359 MB / 0.6055 GB, free: 10.88 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 0.7875 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.47e-05/1.626e-05, allocations: 2.312 kB / 0.7875 GB, free: 12.21 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002047/0.002063, allocations: 1.676 MB / 0.7892 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0008208/0.002884, allocations: 0.6693 MB / 0.7898 GB, free: 9.867 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.786e-05/0.002952, allocations: 0 / 0.7898 GB, free: 9.867 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001441/0.003096, allocations: 27.73 kB / 0.7899 GB, free: 9.84 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.003275, allocations: 48.77 kB / 0.7899 GB, free: 9.793 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.003526, allocations: 119.7 kB / 0.79 GB, free: 9.676 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001883/0.003714, allocations: 185.1 kB / 0.7902 GB, free: 9.496 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 9.884e-05/0.003813, allocations: 29.55 kB / 0.7902 GB, free: 9.465 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001817/0.003995, allocations: 111.8 kB / 0.7903 GB, free: 9.355 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 9.519e-05/0.00409, allocations: 68.47 kB / 0.7904 GB, free: 9.289 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.681e-05/0.004117, allocations: 12 kB / 0.7904 GB, free: 9.277 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 5.769e-05/0.004174, allocations: 33.64 kB / 0.7904 GB, free: 9.246 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 6.419e-05/0.004238, allocations: 39.83 kB / 0.7905 GB, free: 9.207 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 4.934e-05/0.004288, allocations: 43.92 kB / 0.7905 GB, free: 9.164 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001638/0.004452, allocations: 163.4 kB / 0.7907 GB, free: 9.004 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.004453, allocations: 4.688 kB / 0.7907 GB, free: 9 MB / 0.7448 GB Notification: Performance of FrontEnd: time 6.51e-07/0.004454, allocations: 0 / 0.7907 GB, free: 9 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.326e-06/0.004457, allocations: 0.8438 kB / 0.7907 GB, free: 9 MB / 0.7448 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.000764/0.005222, allocations: 0.5768 MB / 0.7912 GB, free: 8.363 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.005265, allocations: 13.59 kB / 0.7913 GB, free: 8.352 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.005386, allocations: 32.84 kB / 0.7913 GB, free: 8.32 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001865/0.005573, allocations: 186.1 kB / 0.7915 GB, free: 8.113 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.005586, allocations: 8.375 kB / 0.7915 GB, free: 8.105 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.005602, allocations: 12.38 kB / 0.7915 GB, free: 8.094 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001646/0.005766, allocations: 158.3 kB / 0.7916 GB, free: 7.918 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.005776, allocations: 2.625 kB / 0.7916 GB, free: 7.918 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.005788, allocations: 4.375 kB / 0.7916 GB, free: 7.914 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.005799, allocations: 3.938 kB / 0.7916 GB, free: 7.91 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.379e-05/0.005863, allocations: 91.3 kB / 0.7917 GB, free: 7.809 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004064/0.006269, allocations: 364.1 kB / 0.7921 GB, free: 7.426 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000105/0.006374, allocations: 119 kB / 0.7922 GB, free: 7.285 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.964e-05/0.006434, allocations: 95.78 kB / 0.7923 GB, free: 7.176 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.006457, allocations: 0 / 0.7923 GB, free: 7.176 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001359/0.006593, allocations: 216.4 kB / 0.7925 GB, free: 6.926 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 1.203e-06/0.006594, allocations: 1.656 kB / 0.7925 GB, free: 6.926 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.0003653/0.006959, allocations: 399.9 kB / 0.7929 GB, free: 6.492 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.843e-05/0.007027, allocations: 162.2 kB / 0.793 GB, free: 6.297 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.007148, allocations: 235.1 kB / 0.7933 GB, free: 6.047 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.007165, allocations: 34.23 kB / 0.7933 GB, free: 6.008 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 6.012e-05/0.007225, allocations: 155.1 kB / 0.7934 GB, free: 5.848 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.733e-05/0.007252, allocations: 29.08 kB / 0.7935 GB, free: 5.82 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.715e-05/0.007299, allocations: 43.36 kB / 0.7935 GB, free: 5.77 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.00742, allocations: 0.5001 MB / 0.794 GB, free: 5.258 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.989e-05/0.00749, allocations: 139.9 kB / 0.7941 GB, free: 5.098 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.764e-05/0.007588, allocations: 210.8 kB / 0.7943 GB, free: 4.836 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001444/0.007732, allocations: 286.7 kB / 0.7946 GB, free: 4.488 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.007734, allocations: 0 / 0.7946 GB, free: 4.488 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002696/0.008004, allocations: 413.4 kB / 0.795 GB, free: 4.031 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 5.313e-05/0.008057, allocations: 118.7 kB / 0.7951 GB, free: 3.891 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.008062, allocations: 0 / 0.7951 GB, free: 3.891 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.008073, allocations: 7.938 kB / 0.7951 GB, free: 3.883 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.495e-05/0.008138, allocations: 16.91 kB / 0.7951 GB, free: 3.867 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.008144, allocations: 7.984 kB / 0.7951 GB, free: 3.859 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.441e-05/0.008188, allocations: 15.39 kB / 0.7951 GB, free: 3.848 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.0082, allocations: 8 kB / 0.7952 GB, free: 3.84 MB / 0.7448 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.0001063/0.008306, allocations: 239.8 kB / 0.7954 GB, free: 3.582 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.714e-05/0.008333, allocations: 27.84 kB / 0.7954 GB, free: 3.555 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.892e-05/0.008362, allocations: 21.45 kB / 0.7954 GB, free: 3.539 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.008364, allocations: 0 / 0.7954 GB, free: 3.539 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-06/0.008365, allocations: 0 / 0.7954 GB, free: 3.539 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.008369, allocations: 4 kB / 0.7954 GB, free: 3.535 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003514/0.00872, allocations: 0.5481 MB / 0.796 GB, free: 2.93 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.008721, allocations: 1.938 kB / 0.796 GB, free: 2.93 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.997e-05/0.008751, allocations: 11.98 kB / 0.796 GB, free: 2.918 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.008754, allocations: 3.938 kB / 0.796 GB, free: 2.914 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.699e-06/0.008764, allocations: 4 kB / 0.796 GB, free: 2.91 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.008765, allocations: 80 / 0.796 GB, free: 2.91 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.008766, allocations: 6.203 kB / 0.796 GB, free: 2.906 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002667/0.009033, allocations: 474.5 kB / 0.7965 GB, free: 2.398 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.412e-05/0.009047, allocations: 15.84 kB / 0.7965 GB, free: 2.383 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.009065, allocations: 4 kB / 0.7965 GB, free: 2.379 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.782e-05/0.009113, allocations: 7.938 kB / 0.7965 GB, free: 2.371 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.128e-05/0.009144, allocations: 11.98 kB / 0.7965 GB, free: 2.359 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.009154, allocations: 8.891 kB / 0.7965 GB, free: 2.352 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.504e-05/0.009209, allocations: 157.1 kB / 0.7966 GB, free: 2.199 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7e-08/0.009209, allocations: 0 / 0.7966 GB, free: 2.199 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001699/0.009379, allocations: 36.78 kB / 0.7967 GB, free: 2.164 MB / 0.7448 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.0001712/0.00955, allocations: 142.4 kB / 0.7968 GB, free: 2.027 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0002468/0.009797, allocations: 479.4 kB / 0.7973 GB, free: 1.469 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.009798, allocations: 0 / 0.7973 GB, free: 1.469 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.000111/0.009909, allocations: 225.8 kB / 0.7975 GB, free: 1.207 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.0101, allocations: 30.48 kB / 0.7975 GB, free: 1.18 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007949/0.01089, allocations: 340.5 kB / 0.7978 GB, free: 0.8047 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.684e-05/0.01093, allocations: 67.33 kB / 0.7979 GB, free: 0.7188 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.988e-05/0.01096, allocations: 9.438 kB / 0.7979 GB, free: 0.7109 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.01107, allocations: 118.2 kB / 0.798 GB, free: 0.5938 MB / 0.7448 GB Notification: Performance of SimCode: time 7.12e-07/0.01107, allocations: 1.125 kB / 0.798 GB, free: 0.5938 MB / 0.7448 GB Notification: Performance of Templates: time 0.003642/0.01472, allocations: 2.397 MB / 0.8004 GB, free: 14.26 MB / 0.7605 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] 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","",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.720077009405941]