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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002015/0.002015, allocations: 110.2 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001934/0.001934, allocations: 192 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.182/3.182, allocations: 496 MB / 0.7835 GB, free: 33.78 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.001999/0.001999, allocations: 71.2 kB / 1.138 GB, free: 33.88 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3686, allocations: 173.6 MB / 1.307 GB, free: 1.863 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00357/0.3722, allocations: 1.641 MB / 1.309 GB, free: 216 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001215/0.3734, allocations: 0.6235 MB / 1.309 GB, free: 15.58 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.3735, allocations: 4 kB / 1.309 GB, free: 15.58 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001886/0.3737, allocations: 27.78 kB / 1.31 GB, free: 15.55 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.000287/0.374, allocations: 46.25 kB / 1.31 GB, free: 15.51 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005387/0.3745, allocations: 115.7 kB / 1.31 GB, free: 15.39 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0003453/0.3749, allocations: 179.6 kB / 1.31 GB, free: 15.22 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.375, allocations: 25.05 kB / 1.31 GB, free: 15.19 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.3751, allocations: 83.75 kB / 1.31 GB, free: 15.11 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.3753, allocations: 87.72 kB / 1.31 GB, free: 15.02 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.101e-05/0.3753, allocations: 16 kB / 1.31 GB, free: 15.01 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.783e-05/0.3754, allocations: 31.98 kB / 1.31 GB, free: 14.98 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.366e-05/0.3755, allocations: 31.91 kB / 1.31 GB, free: 14.95 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.3756, allocations: 75.59 kB / 1.31 GB, free: 14.87 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002801/0.3759, allocations: 175.3 kB / 1.31 GB, free: 14.7 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3759, allocations: 0 / 1.31 GB, free: 14.7 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.804e-06/0.3759, allocations: 0 / 1.31 GB, free: 14.7 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.3759, allocations: 4 kB / 1.31 GB, free: 14.7 MB / 1.014 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.0007357/0.3766, allocations: 484.5 kB / 1.311 GB, free: 14.17 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3767, allocations: 12.92 kB / 1.311 GB, free: 14.16 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.661e-05/0.3767, allocations: 24.78 kB / 1.311 GB, free: 14.13 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003222/0.3771, allocations: 182.5 kB / 1.311 GB, free: 13.93 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.3771, allocations: 8.375 kB / 1.311 GB, free: 13.92 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.473e-05/0.3771, allocations: 12.38 kB / 1.311 GB, free: 13.91 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002894/0.3774, allocations: 117.7 kB / 1.311 GB, free: 13.79 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.3774, allocations: 0 / 1.311 GB, free: 13.79 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.3774, allocations: 8 kB / 1.311 GB, free: 13.78 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.3774, allocations: 0 / 1.311 GB, free: 13.78 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000214/0.3777, allocations: 67.95 kB / 1.311 GB, free: 13.71 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007061/0.3784, allocations: 395.6 kB / 1.312 GB, free: 13.29 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.3786, allocations: 86.47 kB / 1.312 GB, free: 13.19 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.3787, allocations: 64.81 kB / 1.312 GB, free: 13.12 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.3787, allocations: 4 kB / 1.312 GB, free: 13.12 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002673/0.379, allocations: 182.8 kB / 1.312 GB, free: 12.92 MB / 1.014 GB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.379, allocations: 0 / 1.312 GB, free: 12.92 MB / 1.014 GB Notification: Performance of matching and sorting (n=10): time 0.0008/0.3798, allocations: 364.9 kB / 1.312 GB, free: 12.54 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/0.38, allocations: 166.2 kB / 1.312 GB, free: 12.34 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.3802, allocations: 180 kB / 1.313 GB, free: 12.16 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.3802, allocations: 29.7 kB / 1.313 GB, free: 12.12 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 9.869e-05/0.3803, allocations: 112.4 kB / 1.313 GB, free: 12 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.547e-05/0.3804, allocations: 27.8 kB / 1.313 GB, free: 11.98 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.572e-05/0.3804, allocations: 37.7 kB / 1.313 GB, free: 11.93 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001976/0.3806, allocations: 330.8 kB / 1.313 GB, free: 11.6 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/0.3808, allocations: 55.95 kB / 1.313 GB, free: 11.55 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.381, allocations: 102.8 kB / 1.313 GB, free: 11.42 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004055/0.3814, allocations: 308.9 kB / 1.314 GB, free: 11.06 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3814, allocations: 4 kB / 1.314 GB, free: 11.05 MB / 1.014 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006109/0.382, allocations: 356.1 kB / 1.314 GB, free: 10.68 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 9.158e-05/0.3821, allocations: 122.8 kB / 1.314 GB, free: 10.53 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.3821, allocations: 0 / 1.314 GB, free: 10.53 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.3821, allocations: 4 kB / 1.314 GB, free: 10.53 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.3822, allocations: 16.23 kB / 1.314 GB, free: 10.51 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.3822, allocations: 8 kB / 1.314 GB, free: 10.5 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.922e-05/0.3823, allocations: 23.81 kB / 1.314 GB, free: 10.48 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.158e-05/0.3823, allocations: 8 kB / 1.314 GB, free: 10.47 MB / 1.014 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.0001787/0.3825, allocations: 197.1 kB / 1.314 GB, free: 10.26 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.296e-05/0.3826, allocations: 15.95 kB / 1.314 GB, free: 10.24 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.572e-05/0.3826, allocations: 17.39 kB / 1.314 GB, free: 10.22 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.3826, allocations: 0 / 1.314 GB, free: 10.22 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.3826, allocations: 0 / 1.314 GB, free: 10.22 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3826, allocations: 4 kB / 1.314 GB, free: 10.22 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007705/0.3834, allocations: 0.5751 MB / 1.315 GB, free: 9.582 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3834, allocations: 0 / 1.315 GB, free: 9.582 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.359e-05/0.3835, allocations: 8 kB / 1.315 GB, free: 9.574 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3835, allocations: 0 / 1.315 GB, free: 9.574 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.393e-05/0.3835, allocations: 7.984 kB / 1.315 GB, free: 9.566 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3835, allocations: 4 kB / 1.315 GB, free: 9.562 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3835, allocations: 3.938 kB / 1.315 GB, free: 9.559 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006074/0.3841, allocations: 410.6 kB / 1.315 GB, free: 9.129 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.959e-05/0.3841, allocations: 7.953 kB / 1.315 GB, free: 9.121 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.157e-05/0.3842, allocations: 8 kB / 1.315 GB, free: 9.113 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.3843, allocations: 7.984 kB / 1.315 GB, free: 9.105 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.459e-05/0.3843, allocations: 11.92 kB / 1.315 GB, free: 9.094 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.3843, allocations: 15.98 kB / 1.315 GB, free: 9.078 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001129/0.3845, allocations: 127.2 kB / 1.315 GB, free: 8.953 MB / 1.014 GB Notification: Performance of sort global known variables: time 6e-08/0.3845, allocations: 4 kB / 1.315 GB, free: 8.949 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002884/0.3847, allocations: 35.95 kB / 1.315 GB, free: 8.914 MB / 1.014 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.0002966/0.385, allocations: 138 kB / 1.316 GB, free: 8.777 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005579/0.3856, allocations: 357.5 kB / 1.316 GB, free: 8.379 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.3856, allocations: 0 / 1.316 GB, free: 8.379 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002393/0.3858, allocations: 186.7 kB / 1.316 GB, free: 8.172 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.3862, allocations: 19.94 kB / 1.316 GB, free: 8.152 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006523/0.3868, allocations: 296.4 kB / 1.316 GB, free: 7.836 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003359/0.3871, allocations: 0.708 MB / 1.317 GB, free: 7.102 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 6.771e-05/0.3872, allocations: 20.47 kB / 1.317 GB, free: 7.082 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.71e-05/0.3872, allocations: 15.44 kB / 1.317 GB, free: 7.066 MB / 1.014 GB Notification: Performance of SimCode: time 2.81e-07/0.3872, allocations: 0 / 1.317 GB, free: 7.066 MB / 1.014 GB Notification: Performance of Templates: time 0.006117/0.3934, allocations: 2.139 MB / 1.319 GB, free: 4.953 MB / 1.014 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: 8.855749770067632]