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.001334/0.001334, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.0009972/0.0009972, allocations: 173 kB / 23.49 MB, free: 1.059 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.9528/0.9528, allocations: 177.1 MB / 203.8 MB, free: 5.621 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.138/2.138, allocations: 429.5 MB / 0.6736 GB, free: 4.008 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.714e-06/1.714e-06, allocations: 0 / 0.8782 GB, free: 6.656 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.272e-05/2.444e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.652 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002273/0.002297, allocations: 1.686 MB / 0.8798 GB, free: 4.977 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0008186/0.003116, allocations: 0.6647 MB / 0.8805 GB, free: 4.309 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.064e-05/0.003197, allocations: 4.75 kB / 0.8805 GB, free: 4.305 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.003352, allocations: 27.72 kB / 0.8805 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002049/0.003557, allocations: 48.31 kB / 0.8805 GB, free: 4.23 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.003867, allocations: 115.2 kB / 0.8807 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002118/0.004079, allocations: 195.4 kB / 0.8808 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.004191, allocations: 25.56 kB / 0.8809 GB, free: 3.902 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001963/0.004387, allocations: 111.8 kB / 0.881 GB, free: 3.793 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.00449, allocations: 75.84 kB / 0.881 GB, free: 3.719 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.766e-05/0.004517, allocations: 12 kB / 0.8811 GB, free: 3.707 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.871e-05/0.004586, allocations: 31.98 kB / 0.8811 GB, free: 3.676 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.854e-05/0.004665, allocations: 27.91 kB / 0.8811 GB, free: 3.648 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.667e-05/0.004731, allocations: 60.39 kB / 0.8812 GB, free: 3.59 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.004942, allocations: 152.1 kB / 0.8813 GB, free: 3.441 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.004945, allocations: 0 / 0.8813 GB, free: 3.441 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.22e-07/0.004945, allocations: 0.9375 kB / 0.8813 GB, free: 3.441 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.711e-06/0.004951, allocations: 4 kB / 0.8813 GB, free: 3.438 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.0005692/0.00552, allocations: 0.5775 MB / 0.8819 GB, free: 2.801 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.005557, allocations: 12.03 kB / 0.8819 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.00571, allocations: 34.36 kB / 0.8819 GB, free: 2.758 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002433/0.005953, allocations: 192.4 kB / 0.8821 GB, free: 2.543 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.00597, allocations: 12.38 kB / 0.8821 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.025e-05/0.00599, allocations: 12.38 kB / 0.8821 GB, free: 2.52 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002114/0.006201, allocations: 166.3 kB / 0.8823 GB, free: 2.336 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.006209, allocations: 192 / 0.8823 GB, free: 2.336 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.006226, allocations: 12.12 kB / 0.8823 GB, free: 2.324 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.006234, allocations: 0 / 0.8823 GB, free: 2.324 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.11e-05/0.006315, allocations: 87.38 kB / 0.8824 GB, free: 2.227 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004446/0.00676, allocations: 391.5 kB / 0.8828 GB, free: 1.809 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.00688, allocations: 122.4 kB / 0.8829 GB, free: 1.664 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.31e-05/0.006963, allocations: 111 kB / 0.883 GB, free: 1.539 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.006984, allocations: 7.938 kB / 0.883 GB, free: 1.531 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000158/0.007142, allocations: 219.8 kB / 0.8832 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.533e-06/0.007144, allocations: 0 / 0.8832 GB, free: 1.277 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0006035/0.007747, allocations: 423.7 kB / 0.8836 GB, free: 0.8203 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.448e-05/0.007812, allocations: 158.2 kB / 0.8838 GB, free: 0.6289 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.007949, allocations: 230.7 kB / 0.884 GB, free: 392 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.007967, allocations: 33.7 kB / 0.884 GB, free: 352 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.209e-05/0.008029, allocations: 155.1 kB / 0.8842 GB, free: 188 kB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.387e-05/0.008053, allocations: 27.75 kB / 0.8842 GB, free: 160 kB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.134e-05/0.008105, allocations: 47.36 kB / 0.8842 GB, free: 104 kB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.008225, allocations: 0.5001 MB / 0.8847 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.777e-05/0.008312, allocations: 134.8 kB / 0.8848 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.008428, allocations: 216.2 kB / 0.8851 GB, free: 15.16 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001726/0.008601, allocations: 291.6 kB / 0.8853 GB, free: 14.81 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.008604, allocations: 0 / 0.8853 GB, free: 14.81 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003121/0.008916, allocations: 434.9 kB / 0.8857 GB, free: 14.33 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.887e-05/0.008975, allocations: 118.8 kB / 0.8859 GB, free: 14.19 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.008981, allocations: 4.078 kB / 0.8859 GB, free: 14.18 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.008996, allocations: 0 / 0.8859 GB, free: 14.18 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.635e-05/0.009082, allocations: 16.19 kB / 0.8859 GB, free: 14.17 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.00909, allocations: 11.98 kB / 0.8859 GB, free: 14.16 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.329e-05/0.009143, allocations: 23.88 kB / 0.8859 GB, free: 14.13 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.009158, allocations: 8 kB / 0.8859 GB, free: 14.12 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.0001226/0.00928, allocations: 237.5 kB / 0.8861 GB, free: 13.87 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.938e-05/0.00931, allocations: 27.84 kB / 0.8862 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.029e-05/0.00934, allocations: 13.47 kB / 0.8862 GB, free: 13.83 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.009343, allocations: 3.984 kB / 0.8862 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.009347, allocations: 0 / 0.8862 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.009352, allocations: 0 / 0.8862 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004276/0.009779, allocations: 0.5976 MB / 0.8868 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.009782, allocations: 0 / 0.8868 GB, free: 13.16 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.652e-05/0.009818, allocations: 11.98 kB / 0.8868 GB, free: 13.15 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.00982, allocations: 0 / 0.8868 GB, free: 13.15 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.009834, allocations: 4 kB / 0.8868 GB, free: 13.14 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.009835, allocations: 0 / 0.8868 GB, free: 13.14 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.009837, allocations: 4 kB / 0.8868 GB, free: 13.14 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003138/0.01015, allocations: 482.4 kB / 0.8873 GB, free: 12.62 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.107e-05/0.01016, allocations: 11.91 kB / 0.8873 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.01019, allocations: 8 kB / 0.8873 GB, free: 12.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.919e-05/0.01025, allocations: 7.984 kB / 0.8873 GB, free: 12.6 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.42e-05/0.01029, allocations: 19.97 kB / 0.8873 GB, free: 12.58 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.0103, allocations: 4 kB / 0.8873 GB, free: 12.57 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 7.212e-05/0.01037, allocations: 165.6 kB / 0.8875 GB, free: 12.41 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.1e-08/0.01037, allocations: 0 / 0.8875 GB, free: 12.41 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001987/0.01057, allocations: 43.92 kB / 0.8875 GB, free: 12.37 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.0002194/0.01079, allocations: 120.9 kB / 0.8876 GB, free: 12.25 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003188/0.01111, allocations: 491.3 kB / 0.8881 GB, free: 11.68 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01111, allocations: 0 / 0.8881 GB, free: 11.68 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.01125, allocations: 238.1 kB / 0.8883 GB, free: 11.4 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002287/0.01147, allocations: 46.81 kB / 0.8884 GB, free: 11.36 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006821/0.01216, allocations: 349.1 kB / 0.8887 GB, free: 10.98 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.31e-05/0.01221, allocations: 67.34 kB / 0.8888 GB, free: 10.89 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.849e-05/0.01226, allocations: 16.47 kB / 0.8888 GB, free: 10.88 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.434e-05/0.01229, allocations: 16.5 kB / 0.8888 GB, free: 10.86 MB / 0.8542 GB Notification: Performance of SimCode: time 9.62e-07/0.01229, allocations: 0 / 0.8888 GB, free: 10.86 MB / 0.8542 GB Notification: Performance of Templates: time 0.004282/0.01658, allocations: 2.213 MB / 0.8909 GB, free: 8.699 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.314589797053486]