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.0008926/0.0008926, allocations: 92.22 kB / 19.65 MB, free: 276 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.0009147/0.0009147, allocations: 169 kB / 23.02 MB, free: 1.547 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.045/1.045, allocations: 177.1 MB / 203.4 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.202/2.202, allocations: 429.5 MB / 0.6733 GB, free: 4.027 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.733e-06/1.733e-06, allocations: 0 / 0.8782 GB, free: 6.309 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.881e-05/2.054e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.305 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002049/0.002069, allocations: 1.69 MB / 0.8798 GB, free: 4.625 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0008244/0.002894, allocations: 0.6792 MB / 0.8805 GB, free: 3.945 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.95e-05/0.002963, allocations: 0 / 0.8805 GB, free: 3.945 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001625/0.003126, allocations: 23.73 kB / 0.8805 GB, free: 3.922 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 0.0001867/0.003312, allocations: 48.72 kB / 0.8805 GB, free: 3.875 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.00027/0.003582, allocations: 112.3 kB / 0.8807 GB, free: 3.766 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0002045/0.003787, allocations: 195.4 kB / 0.8808 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.003903, allocations: 26.14 kB / 0.8809 GB, free: 3.547 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.004092, allocations: 108.5 kB / 0.881 GB, free: 3.441 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000103/0.004195, allocations: 72.84 kB / 0.881 GB, free: 3.371 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.905e-05/0.004224, allocations: 16 kB / 0.8811 GB, free: 3.355 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 6.592e-05/0.00429, allocations: 31.97 kB / 0.8811 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 7.518e-05/0.004365, allocations: 32.62 kB / 0.8811 GB, free: 3.293 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 6.446e-05/0.00443, allocations: 55.91 kB / 0.8812 GB, free: 3.238 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001992/0.004629, allocations: 156.6 kB / 0.8813 GB, free: 3.086 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.004632, allocations: 3.984 kB / 0.8813 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.61e-07/0.004632, allocations: 0 / 0.8813 GB, free: 3.082 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.004637, allocations: 1.531 kB / 0.8813 GB, free: 3.082 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.0005284/0.005165, allocations: 0.5769 MB / 0.8819 GB, free: 2.445 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.0052, allocations: 8.031 kB / 0.8819 GB, free: 2.438 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.005336, allocations: 37.67 kB / 0.8819 GB, free: 2.402 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002154/0.005552, allocations: 193.2 kB / 0.8821 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.005565, allocations: 8.375 kB / 0.8821 GB, free: 2.18 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.133e-05/0.005587, allocations: 20.03 kB / 0.8821 GB, free: 2.164 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001947/0.005781, allocations: 158.3 kB / 0.8823 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.00579, allocations: 192 / 0.8823 GB, free: 1.988 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.877e-05/0.005809, allocations: 12.12 kB / 0.8823 GB, free: 1.977 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.005816, allocations: 0 / 0.8823 GB, free: 1.977 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.094e-05/0.005896, allocations: 91.38 kB / 0.8824 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004732/0.00637, allocations: 383.5 kB / 0.8828 GB, free: 1.465 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001251/0.006495, allocations: 126.4 kB / 0.8829 GB, free: 1.316 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.313e-05/0.006578, allocations: 107.7 kB / 0.883 GB, free: 1.195 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.424e-05/0.006602, allocations: 11.94 kB / 0.883 GB, free: 1.184 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001626/0.006765, allocations: 219.8 kB / 0.8832 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.006766, allocations: 0 / 0.8832 GB, free: 0.9297 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0004486/0.007215, allocations: 419.9 kB / 0.8836 GB, free: 488 kB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.007274, allocations: 158.2 kB / 0.8837 GB, free: 292 kB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.0074, allocations: 230.7 kB / 0.884 GB, free: 40 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.007416, allocations: 29.7 kB / 0.884 GB, free: 4 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.007487, allocations: 155.1 kB / 0.8841 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/0.00751, allocations: 35.89 kB / 0.8842 GB, free: 15.81 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.022e-05/0.00756, allocations: 43.36 kB / 0.8842 GB, free: 15.76 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.00767, allocations: 0.4962 MB / 0.8847 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.626e-05/0.007756, allocations: 142.8 kB / 0.8848 GB, free: 15.09 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.007868, allocations: 220.2 kB / 0.8851 GB, free: 14.81 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000152/0.00802, allocations: 283.6 kB / 0.8853 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.008024, allocations: 4 kB / 0.8853 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002872/0.008311, allocations: 434.9 kB / 0.8857 GB, free: 13.98 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.638e-05/0.008357, allocations: 114.8 kB / 0.8859 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.008362, allocations: 0 / 0.8859 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.008379, allocations: 7.984 kB / 0.8859 GB, free: 13.84 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.866e-05/0.008458, allocations: 15.94 kB / 0.8859 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.008464, allocations: 4 kB / 0.8859 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.041e-05/0.008515, allocations: 24.12 kB / 0.8859 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.008529, allocations: 8 kB / 0.8859 GB, free: 13.79 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 9.816e-05/0.008627, allocations: 237.7 kB / 0.8861 GB, free: 13.53 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.759e-05/0.008655, allocations: 27.84 kB / 0.8862 GB, free: 13.5 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.043e-05/0.008685, allocations: 13.47 kB / 0.8862 GB, free: 13.49 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.008687, allocations: 0 / 0.8862 GB, free: 13.49 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.806e-06/0.00869, allocations: 0 / 0.8862 GB, free: 13.49 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.008694, allocations: 7.984 kB / 0.8862 GB, free: 13.48 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003961/0.009091, allocations: 0.5898 MB / 0.8868 GB, free: 12.82 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.009092, allocations: 0 / 0.8868 GB, free: 12.82 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.339e-05/0.009125, allocations: 15.98 kB / 0.8868 GB, free: 12.81 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.009127, allocations: 0 / 0.8868 GB, free: 12.81 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.271e-05/0.00914, allocations: 8 kB / 0.8868 GB, free: 12.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.009141, allocations: 0 / 0.8868 GB, free: 12.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.009142, allocations: 0 / 0.8868 GB, free: 12.8 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/0.009437, allocations: 490.4 kB / 0.8872 GB, free: 12.28 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.088e-05/0.009447, allocations: 15.84 kB / 0.8873 GB, free: 12.26 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.009467, allocations: 4 kB / 0.8873 GB, free: 12.26 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.442e-05/0.009522, allocations: 11.98 kB / 0.8873 GB, free: 12.25 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.823e-05/0.00956, allocations: 4 kB / 0.8873 GB, free: 12.24 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.009571, allocations: 11.98 kB / 0.8873 GB, free: 12.23 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 7.023e-05/0.009642, allocations: 173.6 kB / 0.8875 GB, free: 12.06 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.009642, allocations: 0 / 0.8875 GB, free: 12.06 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001921/0.009834, allocations: 35.92 kB / 0.8875 GB, free: 12.03 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.0001806/0.01001, allocations: 123.9 kB / 0.8876 GB, free: 11.9 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002943/0.01031, allocations: 0.4907 MB / 0.8881 GB, free: 11.32 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.01031, allocations: 0 / 0.8881 GB, free: 11.32 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.01043, allocations: 229.8 kB / 0.8883 GB, free: 11.05 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.01064, allocations: 35.86 kB / 0.8883 GB, free: 11.02 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000588/0.01123, allocations: 336.6 kB / 0.8887 GB, free: 10.65 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.927e-05/0.01127, allocations: 67.34 kB / 0.8887 GB, free: 10.56 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.245e-05/0.01131, allocations: 28.78 kB / 0.8888 GB, free: 10.54 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.927e-05/0.01134, allocations: 16.5 kB / 0.8888 GB, free: 10.52 MB / 0.8542 GB Notification: Performance of SimCode: time 7.62e-07/0.01134, allocations: 0 / 0.8888 GB, free: 10.52 MB / 0.8542 GB Notification: Performance of Templates: time 0.004015/0.01535, allocations: 2.215 MB / 0.8909 GB, free: 8.355 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.456012228969485]