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.000926/0.000926, allocations: 81.86 kB / 19.87 MB, free: 4.617 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.0009728/0.0009728, allocations: 169.7 kB / 23.27 MB, free: 1.219 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.015/1.015, allocations: 177.1 MB / 203.7 MB, free: 5.516 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.501/2.501, allocations: 438.1 MB / 0.682 GB, free: 14.16 MB / 0.6511 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.735e-06/2.735e-06, allocations: 0 / 0.8897 GB, free: 9.816 MB / 0.8542 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.893e-05/3.166e-05, allocations: 4.703 kB / 0.8897 GB, free: 9.812 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00257/0.002602, allocations: 1.677 MB / 0.8914 GB, free: 8.125 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0008871/0.003489, allocations: 0.6659 MB / 0.892 GB, free: 7.453 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.033e-05/0.003579, allocations: 7.938 kB / 0.892 GB, free: 7.445 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001675/0.003747, allocations: 23.8 kB / 0.892 GB, free: 7.422 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0002104/0.003957, allocations: 43.77 kB / 0.8921 GB, free: 7.379 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003879/0.004345, allocations: 123.6 kB / 0.8922 GB, free: 7.258 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.004559, allocations: 183.6 kB / 0.8924 GB, free: 7.078 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001084/0.004668, allocations: 25.56 kB / 0.8924 GB, free: 7.051 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002155/0.004883, allocations: 119.7 kB / 0.8925 GB, free: 6.934 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.004994, allocations: 67.84 kB / 0.8926 GB, free: 6.867 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 3.15e-05/0.005026, allocations: 12 kB / 0.8926 GB, free: 6.855 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 7.277e-05/0.005099, allocations: 35.98 kB / 0.8926 GB, free: 6.82 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 8.358e-05/0.005182, allocations: 31.86 kB / 0.8927 GB, free: 6.789 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 6.03e-05/0.005243, allocations: 51.89 kB / 0.8927 GB, free: 6.738 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002263/0.005469, allocations: 163.4 kB / 0.8929 GB, free: 6.578 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.005471, allocations: 0 / 0.8929 GB, free: 6.578 MB / 0.8542 GB Notification: Performance of FrontEnd: time 7.62e-07/0.005472, allocations: 0 / 0.8929 GB, free: 6.578 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.159e-06/0.005477, allocations: 0 / 0.8929 GB, free: 6.578 MB / 0.8542 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.0005762/0.006053, allocations: 0.5729 MB / 0.8934 GB, free: 5.945 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.006099, allocations: 12.62 kB / 0.8934 GB, free: 5.934 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000147/0.006246, allocations: 40.83 kB / 0.8935 GB, free: 5.895 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002053/0.006451, allocations: 184.3 kB / 0.8936 GB, free: 5.688 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.006468, allocations: 8.375 kB / 0.8937 GB, free: 5.68 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.842e-05/0.006487, allocations: 16.31 kB / 0.8937 GB, free: 5.664 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001794/0.006666, allocations: 162.2 kB / 0.8938 GB, free: 5.484 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.006675, allocations: 192 / 0.8938 GB, free: 5.484 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.006687, allocations: 4.375 kB / 0.8938 GB, free: 5.48 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.006696, allocations: 3.938 kB / 0.8938 GB, free: 5.477 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.331e-05/0.006759, allocations: 83.38 kB / 0.8939 GB, free: 5.383 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004218/0.007181, allocations: 368.1 kB / 0.8943 GB, free: 4.996 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.007289, allocations: 114.4 kB / 0.8944 GB, free: 4.859 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.682e-05/0.007356, allocations: 95.06 kB / 0.8945 GB, free: 4.75 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.007384, allocations: 11.97 kB / 0.8945 GB, free: 4.738 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000162/0.007546, allocations: 215.9 kB / 0.8947 GB, free: 4.488 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.007547, allocations: 0 / 0.8947 GB, free: 4.488 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10): time 0.000407/0.007954, allocations: 399.6 kB / 0.8951 GB, free: 4.055 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.396e-05/0.008018, allocations: 162.2 kB / 0.8952 GB, free: 3.859 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003341/0.008352, allocations: 235.7 kB / 0.8954 GB, free: 3.609 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.795e-05/0.00837, allocations: 33.7 kB / 0.8955 GB, free: 3.57 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 7.508e-05/0.008445, allocations: 159 kB / 0.8956 GB, free: 3.406 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.56e-05/0.008471, allocations: 23.78 kB / 0.8957 GB, free: 3.383 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.225e-05/0.008523, allocations: 47.34 kB / 0.8957 GB, free: 3.328 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.008658, allocations: 0.4923 MB / 0.8962 GB, free: 2.824 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.66e-05/0.008735, allocations: 134.8 kB / 0.8963 GB, free: 2.668 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.008845, allocations: 212.2 kB / 0.8965 GB, free: 2.402 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/0.008997, allocations: 283.6 kB / 0.8968 GB, free: 2.055 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.008999, allocations: 0 / 0.8968 GB, free: 2.055 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000275/0.009274, allocations: 411 kB / 0.8972 GB, free: 1.598 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.305e-05/0.009327, allocations: 127 kB / 0.8973 GB, free: 1.449 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.009334, allocations: 4 kB / 0.8973 GB, free: 1.445 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.009347, allocations: 0 / 0.8973 GB, free: 1.445 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.875e-05/0.009416, allocations: 15.98 kB / 0.8973 GB, free: 1.43 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.009422, allocations: 7.938 kB / 0.8973 GB, free: 1.422 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.63e-05/0.009468, allocations: 15.89 kB / 0.8973 GB, free: 1.406 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/0.009483, allocations: 11.98 kB / 0.8973 GB, free: 1.395 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.0001111/0.009594, allocations: 235.9 kB / 0.8976 GB, free: 1.141 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.748e-05/0.009621, allocations: 27.84 kB / 0.8976 GB, free: 1.113 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.597e-05/0.009657, allocations: 17.47 kB / 0.8976 GB, free: 1.09 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.00966, allocations: 4 kB / 0.8976 GB, free: 1.086 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.009662, allocations: 4 kB / 0.8976 GB, free: 1.082 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.009666, allocations: 0 / 0.8976 GB, free: 1.082 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00038/0.01005, allocations: 0.5476 MB / 0.8982 GB, free: 488 kB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.01005, allocations: 0 / 0.8982 GB, free: 488 kB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.122e-05/0.01008, allocations: 11.94 kB / 0.8982 GB, free: 476 kB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.01008, allocations: 3.938 kB / 0.8982 GB, free: 472 kB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.01009, allocations: 7.984 kB / 0.8982 GB, free: 464 kB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.0101, allocations: 0 / 0.8982 GB, free: 464 kB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.0101, allocations: 0 / 0.8982 GB, free: 464 kB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002947/0.01039, allocations: 478.8 kB / 0.8986 GB, free: 15.94 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 1.616e-05/0.01041, allocations: 23.77 kB / 0.8987 GB, free: 15.92 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.01043, allocations: 4 kB / 0.8987 GB, free: 15.91 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.899e-05/0.01048, allocations: 4 kB / 0.8987 GB, free: 15.91 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.588e-05/0.01051, allocations: 11.98 kB / 0.8987 GB, free: 15.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-06/0.01052, allocations: 4 kB / 0.8987 GB, free: 15.89 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 6.556e-05/0.01059, allocations: 160 kB / 0.8988 GB, free: 15.74 MB / 0.8698 GB Notification: Performance of sort global known variables: time 6e-08/0.01059, allocations: 0 / 0.8988 GB, free: 15.74 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0001872/0.01077, allocations: 35.94 kB / 0.8989 GB, free: 15.7 MB / 0.8698 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.0002018/0.01098, allocations: 132.8 kB / 0.899 GB, free: 15.57 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002882/0.01126, allocations: 483.3 kB / 0.8995 GB, free: 15.01 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.01127, allocations: 0 / 0.8995 GB, free: 15.01 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001085/0.01137, allocations: 221.9 kB / 0.8997 GB, free: 14.75 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.01159, allocations: 28.47 kB / 0.8997 GB, free: 14.72 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005904/0.01218, allocations: 336.5 kB / 0.9 GB, free: 14.36 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.091e-05/0.01222, allocations: 67.34 kB / 0.9001 GB, free: 14.27 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.539e-05/0.01225, allocations: 12.47 kB / 0.9001 GB, free: 14.25 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.01237, allocations: 122.2 kB / 0.9002 GB, free: 14.13 MB / 0.8698 GB Notification: Performance of SimCode: time 7.72e-07/0.01237, allocations: 0 / 0.9002 GB, free: 14.13 MB / 0.8698 GB Notification: Performance of Templates: time 0.004589/0.01696, allocations: 2.414 MB / 0.9026 GB, free: 11.77 MB / 0.8698 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.711743459105492]