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.0009171/0.0009171, allocations: 80.92 kB / 20.75 MB, free: 3.742 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.001085/0.001085, allocations: 161 kB / 24.17 MB, free: 332 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.9676/0.9676, allocations: 177.2 MB / 204.6 MB, free: 5.48 MB / 186.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.894/1.894, allocations: 377.9 MB / 0.624 GB, free: 8.367 MB / 0.5886 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.232e-06/1.232e-06, allocations: 0 / 0.76 GB, free: 6.648 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.899e-05/2.022e-05, allocations: 3.078 kB / 0.76 GB, free: 6.645 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002117/0.002138, allocations: 1.68 MB / 0.7616 GB, free: 4.969 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0007528/0.00289, allocations: 0.6778 MB / 0.7623 GB, free: 4.293 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.723e-05/0.002948, allocations: 0 / 0.7623 GB, free: 4.293 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001331/0.003081, allocations: 33.08 kB / 0.7623 GB, free: 4.262 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.003255, allocations: 43.16 kB / 0.7624 GB, free: 4.227 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002544/0.003509, allocations: 122.1 kB / 0.7625 GB, free: 4.109 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0003308/0.00384, allocations: 195.3 kB / 0.7627 GB, free: 3.93 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 8.336e-05/0.003923, allocations: 26.2 kB / 0.7627 GB, free: 3.898 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001833/0.004107, allocations: 123.7 kB / 0.7628 GB, free: 3.777 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 8.934e-05/0.004196, allocations: 68.88 kB / 0.7629 GB, free: 3.711 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.00422, allocations: 12 kB / 0.7629 GB, free: 3.699 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 5.548e-05/0.004275, allocations: 31.98 kB / 0.7629 GB, free: 3.668 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 6.24e-05/0.004338, allocations: 32.41 kB / 0.763 GB, free: 3.637 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 4.893e-05/0.004387, allocations: 57.02 kB / 0.763 GB, free: 3.582 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.004548, allocations: 143.6 kB / 0.7632 GB, free: 3.441 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.004551, allocations: 0 / 0.7632 GB, free: 3.441 MB / 0.7136 GB Notification: Performance of FrontEnd: time 8.82e-07/0.004552, allocations: 4.469 kB / 0.7632 GB, free: 3.438 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.145e-06/0.004555, allocations: 7.938 kB / 0.7632 GB, free: 3.43 MB / 0.7136 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.0004058/0.004961, allocations: 467.8 kB / 0.7636 GB, free: 2.926 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.893e-05/0.00499, allocations: 12.53 kB / 0.7636 GB, free: 2.914 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.005098, allocations: 25.8 kB / 0.7636 GB, free: 2.891 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001786/0.005276, allocations: 170.6 kB / 0.7638 GB, free: 2.699 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.00529, allocations: 12.38 kB / 0.7638 GB, free: 2.688 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.828e-05/0.005308, allocations: 12.38 kB / 0.7638 GB, free: 2.676 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001451/0.005453, allocations: 158.9 kB / 0.764 GB, free: 2.5 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.00546, allocations: 5.953 kB / 0.764 GB, free: 2.496 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.708e-06/0.00547, allocations: 4.375 kB / 0.764 GB, free: 2.492 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.005476, allocations: 7.938 kB / 0.764 GB, free: 2.484 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.29e-05/0.005529, allocations: 79.38 kB / 0.7641 GB, free: 2.395 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002905/0.00582, allocations: 244.1 kB / 0.7643 GB, free: 2.141 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 8.896e-05/0.005909, allocations: 105.9 kB / 0.7644 GB, free: 2.016 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.361e-05/0.005962, allocations: 92.98 kB / 0.7645 GB, free: 1.91 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.005977, allocations: 4 kB / 0.7645 GB, free: 1.906 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001269/0.006104, allocations: 207 kB / 0.7647 GB, free: 1.668 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 1.352e-06/0.006105, allocations: 0 / 0.7647 GB, free: 1.668 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0002324/0.006337, allocations: 316.5 kB / 0.765 GB, free: 1.316 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.813e-05/0.006396, allocations: 166.2 kB / 0.7652 GB, free: 1.117 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.647e-05/0.006492, allocations: 173.7 kB / 0.7653 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.334e-05/0.006505, allocations: 29.7 kB / 0.7654 GB, free: 0.8984 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.556e-05/0.006541, allocations: 96.34 kB / 0.7654 GB, free: 0.7969 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.065e-05/0.006562, allocations: 35.67 kB / 0.7655 GB, free: 0.7617 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.291e-05/0.006605, allocations: 37.69 kB / 0.7655 GB, free: 0.7188 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.092e-05/0.006675, allocations: 327.8 kB / 0.7658 GB, free: 400 kB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.805e-05/0.006744, allocations: 141.6 kB / 0.766 GB, free: 232 kB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.099e-05/0.006825, allocations: 186.2 kB / 0.7661 GB, free: 0 / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001384/0.006963, allocations: 273.9 kB / 0.7664 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.006966, allocations: 4 kB / 0.7664 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001927/0.007159, allocations: 348.7 kB / 0.7667 GB, free: 15.27 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 5.028e-05/0.007209, allocations: 126.7 kB / 0.7669 GB, free: 15.12 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.007213, allocations: 1.906 kB / 0.7669 GB, free: 15.12 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.007227, allocations: 4 kB / 0.7669 GB, free: 15.12 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.672e-05/0.007294, allocations: 19.98 kB / 0.7669 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.516e-06/0.007297, allocations: 0 / 0.7669 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.994e-05/0.007337, allocations: 8.938 kB / 0.7669 GB, free: 15.09 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.007351, allocations: 12 kB / 0.7669 GB, free: 15.08 MB / 0.7292 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.0001027/0.007453, allocations: 198.1 kB / 0.7671 GB, free: 14.86 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.145e-05/0.007475, allocations: 19.97 kB / 0.7671 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.887e-05/0.007504, allocations: 22 kB / 0.7671 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.007506, allocations: 6.25 kB / 0.7671 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.007509, allocations: 0 / 0.7671 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.007512, allocations: 0 / 0.7671 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002542/0.007766, allocations: 405.4 kB / 0.7675 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.007767, allocations: 0 / 0.7675 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.906e-05/0.007796, allocations: 4 kB / 0.7675 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.007798, allocations: 8.812 kB / 0.7675 GB, free: 14.36 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.007809, allocations: 11.92 kB / 0.7676 GB, free: 14.35 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.00781, allocations: 0 / 0.7676 GB, free: 14.35 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.00781, allocations: 0.5 kB / 0.7676 GB, free: 14.35 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001677/0.007978, allocations: 337.2 kB / 0.7679 GB, free: 13.98 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.049e-05/0.007989, allocations: 7.953 kB / 0.7679 GB, free: 13.97 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.748e-05/0.008016, allocations: 11.94 kB / 0.7679 GB, free: 13.96 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.915e-05/0.008065, allocations: 7.984 kB / 0.7679 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.964e-05/0.008095, allocations: 4 kB / 0.7679 GB, free: 13.95 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.008106, allocations: 11.98 kB / 0.7679 GB, free: 13.94 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 3.298e-05/0.008139, allocations: 47.28 kB / 0.768 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5e-08/0.008139, allocations: 0 / 0.768 GB, free: 13.89 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000159/0.008298, allocations: 42.33 kB / 0.768 GB, free: 13.85 MB / 0.7292 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.0001805/0.008478, allocations: 111.8 kB / 0.7681 GB, free: 13.74 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.000238/0.008716, allocations: 477.2 kB / 0.7686 GB, free: 13.19 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.00872, allocations: 4 kB / 0.7686 GB, free: 13.18 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.00882, allocations: 224.5 kB / 0.7688 GB, free: 12.93 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001568/0.008977, allocations: 21.7 kB / 0.7688 GB, free: 12.91 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000493/0.00947, allocations: 335.2 kB / 0.7691 GB, free: 12.54 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001684/0.009638, allocations: 72.39 kB / 0.7692 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 2.974e-05/0.009668, allocations: 5.531 kB / 0.7692 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.009777, allocations: 99.33 kB / 0.7693 GB, free: 12.35 MB / 0.7292 GB Notification: Performance of SimCode: time 4.91e-07/0.009777, allocations: 0 / 0.7693 GB, free: 12.35 MB / 0.7292 GB Notification: Performance of Templates: time 0.003818/0.0136, allocations: 2.34 MB / 0.7716 GB, free: 10.18 MB / 0.7292 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 -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","/mnt/ReferenceFiles/Buildings/csv/maint_12.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.957010609097779]