Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0007501/0.0007501, allocations: 80.48 kB / 19.93 MB, free: 4.633 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.0008078/0.0008078, allocations: 173.9 kB / 23.21 MB, free: 1.352 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.9246/0.9246, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.724/1.724, allocations: 377.8 MB / 0.6228 GB, free: 8.68 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 0.9822 GB, free: 2.102 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.835e-05/1.964e-05, allocations: 5.234 kB / 0.9822 GB, free: 2.098 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001862/0.001882, allocations: 1.627 MB / 0.9838 GB, free: 472 kB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0007027/0.002585, allocations: 0.6543 MB / 0.9844 GB, free: 15.8 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.19e-05/0.002646, allocations: 3.938 kB / 0.9844 GB, free: 15.8 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.002777, allocations: 15.86 kB / 0.9844 GB, free: 15.78 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.002951, allocations: 51.64 kB / 0.9845 GB, free: 15.73 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.003229, allocations: 123.7 kB / 0.9846 GB, free: 15.61 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0001935/0.003422, allocations: 195.6 kB / 0.9848 GB, free: 15.42 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 9.474e-05/0.003517, allocations: 9.641 kB / 0.9848 GB, free: 15.41 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001826/0.003699, allocations: 131.6 kB / 0.9849 GB, free: 15.28 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 8.839e-05/0.003788, allocations: 67.84 kB / 0.985 GB, free: 15.21 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 2.551e-05/0.003813, allocations: 16 kB / 0.985 GB, free: 15.2 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 6.264e-05/0.003876, allocations: 28 kB / 0.985 GB, free: 15.17 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 6.761e-05/0.003944, allocations: 39.83 kB / 0.9851 GB, free: 15.13 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 5.786e-05/0.004001, allocations: 59.83 kB / 0.9851 GB, free: 15.07 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002045/0.004206, allocations: 199.4 kB / 0.9853 GB, free: 14.88 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.004208, allocations: 0 / 0.9853 GB, free: 14.88 MB / 0.948 GB Notification: Performance of FrontEnd: time 7.71e-07/0.004209, allocations: 0 / 0.9853 GB, free: 14.88 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.004213, allocations: 0 / 0.9853 GB, free: 14.88 MB / 0.948 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.0004839/0.004697, allocations: 496.4 kB / 0.9858 GB, free: 14.34 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 2.922e-05/0.004726, allocations: 8.031 kB / 0.9858 GB, free: 14.33 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.00484, allocations: 20.89 kB / 0.9858 GB, free: 14.31 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.005068, allocations: 186.1 kB / 0.986 GB, free: 14.1 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.005081, allocations: 16.36 kB / 0.986 GB, free: 14.09 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.068e-05/0.005102, allocations: 16.38 kB / 0.986 GB, free: 14.07 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002022/0.005304, allocations: 169.6 kB / 0.9862 GB, free: 13.89 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.005311, allocations: 192 / 0.9862 GB, free: 13.89 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.005324, allocations: 8.125 kB / 0.9862 GB, free: 13.88 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.005329, allocations: 0 / 0.9862 GB, free: 13.88 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.005458, allocations: 127.3 kB / 0.9863 GB, free: 13.74 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003941/0.005852, allocations: 344.2 kB / 0.9866 GB, free: 13.38 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001346/0.005987, allocations: 138 kB / 0.9868 GB, free: 13.22 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.00609, allocations: 128.2 kB / 0.9869 GB, free: 13.08 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.006111, allocations: 7.938 kB / 0.9869 GB, free: 13.07 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001665/0.006278, allocations: 230.1 kB / 0.9871 GB, free: 12.81 MB / 0.948 GB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.006279, allocations: 0 / 0.9871 GB, free: 12.81 MB / 0.948 GB Notification: Performance of matching and sorting (n=10): time 0.0004801/0.006759, allocations: 487.7 kB / 0.9876 GB, free: 12.29 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.974e-05/0.006819, allocations: 166.2 kB / 0.9877 GB, free: 12.09 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.006934, allocations: 180.7 kB / 0.9879 GB, free: 11.9 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.00695, allocations: 29.98 kB / 0.9879 GB, free: 11.87 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.288e-05/0.007003, allocations: 112.3 kB / 0.988 GB, free: 11.75 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.007026, allocations: 27.78 kB / 0.9881 GB, free: 11.72 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.737e-05/0.007073, allocations: 45.64 kB / 0.9881 GB, free: 11.67 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.791e-05/0.007151, allocations: 322.8 kB / 0.9884 GB, free: 11.35 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.007255, allocations: 162.8 kB / 0.9886 GB, free: 11.16 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.007382, allocations: 216.6 kB / 0.9888 GB, free: 10.91 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000198/0.00758, allocations: 312.9 kB / 0.9891 GB, free: 10.54 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.007582, allocations: 0 / 0.9891 GB, free: 10.54 MB / 0.948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003296/0.007912, allocations: 474.9 kB / 0.9895 GB, free: 10.02 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.006e-05/0.007962, allocations: 114.8 kB / 0.9896 GB, free: 9.883 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.007967, allocations: 4 kB / 0.9897 GB, free: 9.879 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.007978, allocations: 0 / 0.9897 GB, free: 9.879 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.898e-05/0.008047, allocations: 19.92 kB / 0.9897 GB, free: 9.859 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.008054, allocations: 8.188 kB / 0.9897 GB, free: 9.852 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.069e-05/0.008104, allocations: 19.95 kB / 0.9897 GB, free: 9.832 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.512e-05/0.008119, allocations: 11.98 kB / 0.9897 GB, free: 9.82 MB / 0.948 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.0001036/0.008223, allocations: 207.2 kB / 0.9899 GB, free: 9.598 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.033e-05/0.008243, allocations: 19.84 kB / 0.9899 GB, free: 9.578 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.325e-05/0.008267, allocations: 13.47 kB / 0.9899 GB, free: 9.566 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.008269, allocations: 4 kB / 0.9899 GB, free: 9.562 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.008274, allocations: 4 kB / 0.9899 GB, free: 9.559 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.008278, allocations: 3.984 kB / 0.9899 GB, free: 9.555 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004323/0.008711, allocations: 0.575 MB / 0.9905 GB, free: 8.918 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.008712, allocations: 4 kB / 0.9905 GB, free: 8.914 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.018e-05/0.008742, allocations: 15.92 kB / 0.9905 GB, free: 8.898 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.008744, allocations: 0 / 0.9905 GB, free: 8.898 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.008757, allocations: 7.984 kB / 0.9905 GB, free: 8.891 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.008758, allocations: 0 / 0.9905 GB, free: 8.891 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.008759, allocations: 0 / 0.9905 GB, free: 8.891 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003242/0.009083, allocations: 466.1 kB / 0.991 GB, free: 8.395 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.172e-05/0.009095, allocations: 11.91 kB / 0.991 GB, free: 8.383 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.232e-05/0.009117, allocations: 15.98 kB / 0.991 GB, free: 8.367 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.357e-05/0.009171, allocations: 11.94 kB / 0.991 GB, free: 8.355 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.635e-05/0.009207, allocations: 11.92 kB / 0.991 GB, free: 8.344 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.009217, allocations: 8 kB / 0.991 GB, free: 8.336 MB / 0.948 GB Notification: Performance of sorting global known variables: time 6.616e-05/0.009283, allocations: 128.1 kB / 0.9912 GB, free: 8.211 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.009283, allocations: 3.938 kB / 0.9912 GB, free: 8.207 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001978/0.009481, allocations: 39.94 kB / 0.9912 GB, free: 8.168 MB / 0.948 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.0001586/0.009639, allocations: 121.9 kB / 0.9913 GB, free: 8.039 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000336/0.009975, allocations: 0.523 MB / 0.9918 GB, free: 7.43 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.009977, allocations: 0 / 0.9918 GB, free: 7.43 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001396/0.01012, allocations: 238.2 kB / 0.9921 GB, free: 7.16 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001982/0.01031, allocations: 30.92 kB / 0.9921 GB, free: 7.133 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004325/0.01075, allocations: 375.5 kB / 0.9924 GB, free: 6.723 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.145e-05/0.01081, allocations: 93.3 kB / 0.9925 GB, free: 6.609 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.024e-05/0.01084, allocations: 20.5 kB / 0.9926 GB, free: 6.59 MB / 0.948 GB Notification: Performance of SimCode: time 4.91e-07/0.01084, allocations: 3.938 kB / 0.9926 GB, free: 6.586 MB / 0.948 GB Notification: Performance of Templates: time 0.002632/0.01347, allocations: 2.224 MB / 0.9947 GB, free: 4.375 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.757623233832419]