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.001392/0.001392, allocations: 73.97 kB / 20.65 MB, free: 3.844 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.001275/0.001275, allocations: 169 kB / 24.06 MB, free: 452 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 1.024/1.024, allocations: 177.1 MB / 204.5 MB, free: 5.465 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 2.115/2.115, allocations: 429.5 MB / 0.6743 GB, free: 3.871 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/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.532e-06/1.532e-06, allocations: 0 / 0.8794 GB, free: 6.035 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.632e-05/1.785e-05, allocations: 2.312 kB / 0.8794 GB, free: 6.031 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002165/0.002183, allocations: 1.681 MB / 0.881 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0008906/0.003074, allocations: 0.666 MB / 0.8817 GB, free: 3.699 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.35e-05/0.003157, allocations: 4 kB / 0.8817 GB, free: 3.695 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.003303, allocations: 19.73 kB / 0.8817 GB, free: 3.676 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001764/0.003479, allocations: 55.09 kB / 0.8817 GB, free: 3.625 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.003797, allocations: 115.7 kB / 0.8819 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002092/0.004006, allocations: 195.5 kB / 0.882 GB, free: 3.32 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 9.492e-05/0.004101, allocations: 25.55 kB / 0.8821 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.004292, allocations: 111.8 kB / 0.8822 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 9.379e-05/0.004385, allocations: 71.78 kB / 0.8822 GB, free: 3.113 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.443e-05/0.00441, allocations: 12 kB / 0.8823 GB, free: 3.102 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.76e-05/0.004477, allocations: 36.56 kB / 0.8823 GB, free: 3.066 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.245e-05/0.00455, allocations: 25.3 kB / 0.8823 GB, free: 3.043 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 5.759e-05/0.004608, allocations: 63.77 kB / 0.8824 GB, free: 2.98 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.004783, allocations: 147.6 kB / 0.8825 GB, free: 2.836 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.774e-06/0.004785, allocations: 0 / 0.8825 GB, free: 2.836 MB / 0.8386 GB Notification: Performance of FrontEnd: time 4.41e-07/0.004785, allocations: 1.531 kB / 0.8825 GB, free: 2.836 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.636e-06/0.004789, allocations: 0 / 0.8825 GB, free: 2.836 MB / 0.8386 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.0004675/0.005257, allocations: 0.5885 MB / 0.8831 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.005288, allocations: 12.03 kB / 0.8831 GB, free: 2.176 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.005412, allocations: 32.78 kB / 0.8831 GB, free: 2.145 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001963/0.005609, allocations: 184.3 kB / 0.8833 GB, free: 1.938 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.005623, allocations: 12.38 kB / 0.8833 GB, free: 1.926 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.636e-05/0.00564, allocations: 8.375 kB / 0.8833 GB, free: 1.918 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001585/0.005798, allocations: 158.3 kB / 0.8835 GB, free: 1.742 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.005805, allocations: 192 / 0.8835 GB, free: 1.742 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.005816, allocations: 4.375 kB / 0.8835 GB, free: 1.738 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.005822, allocations: 3.938 kB / 0.8835 GB, free: 1.734 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.068e-05/0.005883, allocations: 91.31 kB / 0.8836 GB, free: 1.633 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003666/0.006249, allocations: 364.1 kB / 0.8839 GB, free: 1.25 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001066/0.006356, allocations: 118.5 kB / 0.884 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.309e-05/0.006419, allocations: 95.06 kB / 0.8841 GB, free: 1 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.006435, allocations: 4 kB / 0.8841 GB, free: 0.9961 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001463/0.006582, allocations: 215.9 kB / 0.8843 GB, free: 0.7461 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.006583, allocations: 0 / 0.8843 GB, free: 0.7461 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0003835/0.006966, allocations: 403.5 kB / 0.8847 GB, free: 316 kB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.007028, allocations: 170.2 kB / 0.8849 GB, free: 108 kB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.007154, allocations: 227.7 kB / 0.8851 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/0.007173, allocations: 33.7 kB / 0.8851 GB, free: 15.82 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 6.043e-05/0.007233, allocations: 155.1 kB / 0.8853 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.007258, allocations: 35.72 kB / 0.8853 GB, free: 15.63 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.015e-05/0.007308, allocations: 43.34 kB / 0.8854 GB, free: 15.58 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.007417, allocations: 0.4961 MB / 0.8858 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.21e-05/0.00749, allocations: 134.8 kB / 0.886 GB, free: 14.91 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.767e-05/0.007587, allocations: 208.3 kB / 0.8862 GB, free: 14.65 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.007731, allocations: 287.5 kB / 0.8864 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.007733, allocations: 0 / 0.8864 GB, free: 14.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002796/0.008013, allocations: 415.2 kB / 0.8868 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.2e-05/0.008065, allocations: 122.7 kB / 0.887 GB, free: 13.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.621e-06/0.00807, allocations: 4 kB / 0.887 GB, free: 13.69 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.468e-06/0.00808, allocations: 0 / 0.887 GB, free: 13.69 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.332e-05/0.008143, allocations: 15.98 kB / 0.887 GB, free: 13.68 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.147e-06/0.008147, allocations: 4 kB / 0.887 GB, free: 13.67 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.008e-05/0.008197, allocations: 11.95 kB / 0.887 GB, free: 13.66 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.594e-05/0.008213, allocations: 12 kB / 0.887 GB, free: 13.65 MB / 0.8542 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.0001143/0.008327, allocations: 237.5 kB / 0.8872 GB, free: 13.39 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.331e-05/0.008361, allocations: 31.84 kB / 0.8873 GB, free: 13.36 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.726e-05/0.008388, allocations: 21.48 kB / 0.8873 GB, free: 13.34 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.00839, allocations: 0 / 0.8873 GB, free: 13.34 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.008397, allocations: 4 kB / 0.8873 GB, free: 13.34 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.008401, allocations: 0 / 0.8873 GB, free: 13.34 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000385/0.008786, allocations: 0.5437 MB / 0.8878 GB, free: 12.73 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.008788, allocations: 3.938 kB / 0.8878 GB, free: 12.73 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.476e-05/0.008823, allocations: 11.98 kB / 0.8878 GB, free: 12.72 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.008825, allocations: 3.938 kB / 0.8878 GB, free: 12.71 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.008836, allocations: 4 kB / 0.8878 GB, free: 12.71 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.008838, allocations: 0 / 0.8878 GB, free: 12.71 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.00884, allocations: 7.984 kB / 0.8878 GB, free: 12.7 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003674/0.009207, allocations: 470.5 kB / 0.8883 GB, free: 12.2 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.36e-05/0.009221, allocations: 15.84 kB / 0.8883 GB, free: 12.18 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.009242, allocations: 4 kB / 0.8883 GB, free: 12.18 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.515e-05/0.009297, allocations: 11.98 kB / 0.8883 GB, free: 12.17 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.009331, allocations: 11.97 kB / 0.8883 GB, free: 12.16 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.009343, allocations: 7.984 kB / 0.8883 GB, free: 12.15 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 6.826e-05/0.009412, allocations: 157.1 kB / 0.8885 GB, free: 12 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.009412, allocations: 0 / 0.8885 GB, free: 12 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002348/0.009646, allocations: 39.94 kB / 0.8885 GB, free: 11.96 MB / 0.8542 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.0002019/0.009848, allocations: 124.1 kB / 0.8886 GB, free: 11.83 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002962/0.01014, allocations: 479.4 kB / 0.8891 GB, free: 11.27 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.01015, allocations: 0 / 0.8891 GB, free: 11.27 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.01027, allocations: 230.6 kB / 0.8893 GB, free: 11 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.01048, allocations: 39.84 kB / 0.8894 GB, free: 10.96 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000514/0.011, allocations: 328.6 kB / 0.8897 GB, free: 10.6 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.944e-05/0.01104, allocations: 71.33 kB / 0.8897 GB, free: 10.51 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 3.059e-05/0.01107, allocations: 4.5 kB / 0.8897 GB, free: 10.51 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.0112, allocations: 126.1 kB / 0.8899 GB, free: 10.38 MB / 0.8542 GB Notification: Performance of SimCode: time 8.62e-07/0.0112, allocations: 0 / 0.8899 GB, free: 10.38 MB / 0.8542 GB Notification: Performance of Templates: time 0.003995/0.01519, allocations: 2.452 MB / 0.8923 GB, free: 7.973 MB / 0.8542 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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: 5.3099690498784184]