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.001413/0.001413, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001638/0.001638, allocations: 173 kB / 23.02 MB, free: 1.551 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 1.011/1.011, allocations: 177.1 MB / 203.4 MB, free: 5.652 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.037/2.037, allocations: 429.5 MB / 0.6733 GB, free: 4.035 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 2.024e-06/2.024e-06, allocations: 0 / 0.8782 GB, free: 6.355 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.88e-05/3.083e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.352 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003377/0.003408, allocations: 1.687 MB / 0.8798 GB, free: 4.676 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001289/0.004697, allocations: 0.6771 MB / 0.8805 GB, free: 4 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.982e-05/0.004787, allocations: 7.938 kB / 0.8805 GB, free: 3.992 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0002045/0.004991, allocations: 23.73 kB / 0.8805 GB, free: 3.969 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0002768/0.005268, allocations: 39.77 kB / 0.8805 GB, free: 3.93 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004594/0.005728, allocations: 121.8 kB / 0.8806 GB, free: 3.812 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0003138/0.006041, allocations: 195.5 kB / 0.8808 GB, free: 3.621 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.006171, allocations: 21.56 kB / 0.8809 GB, free: 3.598 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003057/0.006476, allocations: 119.8 kB / 0.881 GB, free: 3.48 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001376/0.006614, allocations: 71.84 kB / 0.881 GB, free: 3.41 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 4.42e-05/0.006658, allocations: 16.66 kB / 0.8811 GB, free: 3.395 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 9.832e-05/0.006756, allocations: 27.98 kB / 0.8811 GB, free: 3.367 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.006863, allocations: 33.56 kB / 0.8811 GB, free: 3.336 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 9.639e-05/0.006959, allocations: 51.91 kB / 0.8812 GB, free: 3.285 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002844/0.007244, allocations: 155.4 kB / 0.8813 GB, free: 3.133 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.007246, allocations: 0 / 0.8813 GB, free: 3.133 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.42e-07/0.007247, allocations: 1.25 kB / 0.8813 GB, free: 3.133 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.007253, allocations: 0 / 0.8813 GB, free: 3.133 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.0007613/0.008014, allocations: 0.5846 MB / 0.8819 GB, free: 2.488 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.008061, allocations: 12.03 kB / 0.8819 GB, free: 2.477 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000241/0.008302, allocations: 36.83 kB / 0.8819 GB, free: 2.441 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.008609, allocations: 180.3 kB / 0.8821 GB, free: 2.238 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.207e-05/0.008631, allocations: 8.375 kB / 0.8821 GB, free: 2.23 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.005e-05/0.008661, allocations: 16.31 kB / 0.8821 GB, free: 2.215 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.008979, allocations: 166.3 kB / 0.8823 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.008989, allocations: 192 / 0.8823 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.009007, allocations: 384 / 0.8823 GB, free: 2.031 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.009021, allocations: 7.938 kB / 0.8823 GB, free: 2.023 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001384/0.00916, allocations: 95.38 kB / 0.8824 GB, free: 1.918 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006461/0.009806, allocations: 387.5 kB / 0.8828 GB, free: 1.504 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001829/0.009989, allocations: 126.4 kB / 0.8829 GB, free: 1.355 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.01011, allocations: 103.1 kB / 0.883 GB, free: 1.238 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.01013, allocations: 0 / 0.883 GB, free: 1.238 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002448/0.01038, allocations: 227.8 kB / 0.8832 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 2.996e-06/0.01038, allocations: 0 / 0.8832 GB, free: 0.9766 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0006422/0.01102, allocations: 415.9 kB / 0.8836 GB, free: 0.5273 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.42e-05/0.01112, allocations: 170.2 kB / 0.8837 GB, free: 332 kB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001885/0.01131, allocations: 226.7 kB / 0.884 GB, free: 84 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.01133, allocations: 25.7 kB / 0.884 GB, free: 52 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.01144, allocations: 155.1 kB / 0.8841 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.81e-05/0.01148, allocations: 31.89 kB / 0.8842 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.48e-05/0.01155, allocations: 55.3 kB / 0.8842 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.01172, allocations: 0.4923 MB / 0.8847 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.01184, allocations: 142.8 kB / 0.8848 GB, free: 15.13 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.012, allocations: 212.3 kB / 0.885 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002313/0.01223, allocations: 295.6 kB / 0.8853 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.01224, allocations: 0 / 0.8853 GB, free: 14.5 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004571/0.01269, allocations: 427.1 kB / 0.8857 GB, free: 14.03 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 7.531e-05/0.01277, allocations: 122.8 kB / 0.8858 GB, free: 13.89 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.01278, allocations: 0 / 0.8858 GB, free: 13.89 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.0128, allocations: 7.984 kB / 0.8859 GB, free: 13.88 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/0.01293, allocations: 23.92 kB / 0.8859 GB, free: 13.86 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.01294, allocations: 0 / 0.8859 GB, free: 13.86 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.678e-05/0.01302, allocations: 11.95 kB / 0.8859 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.413e-05/0.01304, allocations: 12 kB / 0.8859 GB, free: 13.83 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.0001666/0.01321, allocations: 233.5 kB / 0.8861 GB, free: 13.58 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.733e-05/0.01326, allocations: 35.78 kB / 0.8862 GB, free: 13.55 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.647e-05/0.0133, allocations: 21.48 kB / 0.8862 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.01331, allocations: 0 / 0.8862 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.01331, allocations: 0 / 0.8862 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.01332, allocations: 0 / 0.8862 GB, free: 13.52 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008032/0.01412, allocations: 0.5898 MB / 0.8868 GB, free: 12.87 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.01412, allocations: 0 / 0.8868 GB, free: 12.87 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.258e-05/0.01419, allocations: 11.98 kB / 0.8868 GB, free: 12.86 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.01419, allocations: 0 / 0.8868 GB, free: 12.86 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.01421, allocations: 15.98 kB / 0.8868 GB, free: 12.84 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.01421, allocations: 0 / 0.8868 GB, free: 12.84 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.01422, allocations: 0 / 0.8868 GB, free: 12.84 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006501/0.01487, allocations: 490.4 kB / 0.8872 GB, free: 12.32 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.995e-05/0.0149, allocations: 15.89 kB / 0.8873 GB, free: 12.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.572e-05/0.01494, allocations: 8 kB / 0.8873 GB, free: 12.29 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000132/0.01507, allocations: 4 kB / 0.8873 GB, free: 12.29 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.754e-05/0.01514, allocations: 7.984 kB / 0.8873 GB, free: 12.28 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.01516, allocations: 8 kB / 0.8873 GB, free: 12.27 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 8.243e-05/0.01525, allocations: 169.6 kB / 0.8875 GB, free: 12.11 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.01525, allocations: 0 / 0.8875 GB, free: 12.11 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002013/0.01545, allocations: 39.94 kB / 0.8875 GB, free: 12.07 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.0002461/0.01569, allocations: 120.9 kB / 0.8876 GB, free: 11.95 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003272/0.01602, allocations: 499.3 kB / 0.8881 GB, free: 11.37 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.01602, allocations: 4 kB / 0.8881 GB, free: 11.36 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.01615, allocations: 229.9 kB / 0.8883 GB, free: 11.1 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002346/0.01638, allocations: 32.36 kB / 0.8883 GB, free: 11.07 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007286/0.01711, allocations: 344.6 kB / 0.8887 GB, free: 10.69 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.733e-05/0.01716, allocations: 71.33 kB / 0.8887 GB, free: 10.6 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.717e-05/0.01721, allocations: 12.48 kB / 0.8887 GB, free: 10.59 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.856e-05/0.01724, allocations: 20.48 kB / 0.8888 GB, free: 10.57 MB / 0.8542 GB Notification: Performance of SimCode: time 8.02e-07/0.01725, allocations: 0 / 0.8888 GB, free: 10.57 MB / 0.8542 GB Notification: Performance of Templates: time 0.00467/0.02192, allocations: 2.382 MB / 0.8911 GB, free: 8.234 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.272253645118326]