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.001882/0.001882, allocations: 108.5 kB / 16.46 MB, free: 6.508 MB / 14.72 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.002416/0.002416, allocations: 213.7 kB / 19.43 MB, free: 3.648 MB / 14.72 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.446/1.446, allocations: 230.5 MB / 252.8 MB, free: 9.141 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.164/3.164, allocations: 0.4899 GB / 0.7916 GB, free: 33.2 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002067, allocations: 64.62 kB / 1.149 GB, free: 26.17 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3416, allocations: 176.1 MB / 1.321 GB, free: 2.801 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003532/0.3451, allocations: 1.641 MB / 1.323 GB, free: 1.148 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001259/0.3464, allocations: 0.6974 MB / 1.324 GB, free: 456 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.772e-05/0.3464, allocations: 3.938 kB / 1.324 GB, free: 452 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001899/0.3466, allocations: 15.8 kB / 1.324 GB, free: 436 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.3469, allocations: 51.77 kB / 1.324 GB, free: 384 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004638/0.3473, allocations: 123.7 kB / 1.324 GB, free: 260 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000307/0.3476, allocations: 183.6 kB / 1.324 GB, free: 76 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.3478, allocations: 25.44 kB / 1.324 GB, free: 44 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002225/0.348, allocations: 83.81 kB / 1.324 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.3481, allocations: 91.64 kB / 1.324 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.705e-05/0.3482, allocations: 12 kB / 1.324 GB, free: 15.86 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.391e-05/0.3482, allocations: 35.94 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.629e-05/0.3483, allocations: 31.92 kB / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.3484, allocations: 75.64 kB / 1.324 GB, free: 15.72 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002684/0.3487, allocations: 175.3 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3487, allocations: 0 / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3487, allocations: 0 / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.411e-06/0.3487, allocations: 0 / 1.324 GB, free: 15.55 MB / 1.029 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.0008447/0.3496, allocations: 0.5601 MB / 1.325 GB, free: 14.91 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3496, allocations: 15.92 kB / 1.325 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002126/0.3498, allocations: 32.83 kB / 1.325 GB, free: 14.87 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003706/0.3502, allocations: 244.2 kB / 1.325 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.736e-05/0.3502, allocations: 8.375 kB / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.819e-05/0.3503, allocations: 16.38 kB / 1.325 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.3506, allocations: 113.7 kB / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.3506, allocations: 0 / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.016e-05/0.3506, allocations: 4 kB / 1.325 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.3506, allocations: 4 kB / 1.325 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002135/0.3508, allocations: 67.95 kB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007489/0.3516, allocations: 424.5 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002142/0.3518, allocations: 78.53 kB / 1.326 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001655/0.3519, allocations: 72.84 kB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.352, allocations: 4 kB / 1.326 GB, free: 13.75 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002854/0.3522, allocations: 170.7 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/0.3522, allocations: 4 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0008206/0.3531, allocations: 356.9 kB / 1.326 GB, free: 13.18 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.3532, allocations: 170.2 kB / 1.327 GB, free: 12.98 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001973/0.3534, allocations: 175.5 kB / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.3534, allocations: 29.7 kB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.3535, allocations: 112.4 kB / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.426e-05/0.3535, allocations: 23.75 kB / 1.327 GB, free: 12.62 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.874e-05/0.3536, allocations: 45.7 kB / 1.327 GB, free: 12.57 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.3538, allocations: 322.8 kB / 1.327 GB, free: 12.25 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.354, allocations: 63.89 kB / 1.327 GB, free: 12.18 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.3541, allocations: 102.2 kB / 1.327 GB, free: 12.06 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.3545, allocations: 312.9 kB / 1.328 GB, free: 11.7 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.3545, allocations: 4 kB / 1.328 GB, free: 11.69 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006113/0.3552, allocations: 356.1 kB / 1.328 GB, free: 11.31 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.3553, allocations: 118.8 kB / 1.328 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.3553, allocations: 4 kB / 1.328 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.3553, allocations: 0 / 1.328 GB, free: 11.17 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.3554, allocations: 15.98 kB / 1.328 GB, free: 11.15 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.3554, allocations: 8.469 kB / 1.328 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.3555, allocations: 15.95 kB / 1.328 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.3556, allocations: 12 kB / 1.328 GB, free: 11.12 MB / 1.029 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.0001913/0.3557, allocations: 205 kB / 1.328 GB, free: 10.89 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.538e-05/0.3558, allocations: 11.95 kB / 1.328 GB, free: 10.88 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.697e-05/0.3558, allocations: 17.41 kB / 1.329 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.3558, allocations: 4 kB / 1.329 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.782e-05/0.3558, allocations: 4 kB / 1.329 GB, free: 10.85 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3559, allocations: 0 / 1.329 GB, free: 10.85 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008336/0.3567, allocations: 0.5953 MB / 1.329 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.3567, allocations: 0 / 1.329 GB, free: 10.19 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.967e-05/0.3568, allocations: 19.92 kB / 1.329 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.3568, allocations: 0 / 1.329 GB, free: 10.17 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.3568, allocations: 8 kB / 1.329 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.3568, allocations: 0 / 1.329 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3568, allocations: 3.938 kB / 1.329 GB, free: 10.16 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006459/0.3574, allocations: 410.7 kB / 1.33 GB, free: 9.727 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.949e-05/0.3575, allocations: 89.02 kB / 1.33 GB, free: 9.621 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.4e-05/0.3575, allocations: 4 kB / 1.33 GB, free: 9.617 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.3577, allocations: 8 kB / 1.33 GB, free: 9.609 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.106e-05/0.3577, allocations: 19.86 kB / 1.33 GB, free: 9.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.3577, allocations: 4 kB / 1.33 GB, free: 9.586 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001249/0.3578, allocations: 137.1 kB / 1.33 GB, free: 9.453 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3578, allocations: 4 kB / 1.33 GB, free: 9.449 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003048/0.3581, allocations: 39.94 kB / 1.33 GB, free: 9.41 MB / 1.029 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.0002743/0.3584, allocations: 122.1 kB / 1.33 GB, free: 9.285 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0005845/0.359, allocations: 353.5 kB / 1.33 GB, free: 8.891 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.359, allocations: 3.938 kB / 1.33 GB, free: 8.887 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002681/0.3593, allocations: 178.8 kB / 1.33 GB, free: 8.688 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.3596, allocations: 30.59 kB / 1.33 GB, free: 8.66 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006458/0.3602, allocations: 299.7 kB / 1.331 GB, free: 8.344 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.3606, allocations: 0.7123 MB / 1.331 GB, free: 7.605 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.892e-05/0.3607, allocations: 20.41 kB / 1.331 GB, free: 7.586 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.015e-05/0.3607, allocations: 19.42 kB / 1.331 GB, free: 7.566 MB / 1.029 GB Notification: Performance of SimCode: time 3.11e-07/0.3607, allocations: 3.938 kB / 1.331 GB, free: 7.562 MB / 1.029 GB Notification: Performance of Templates: time 0.005804/0.3665, allocations: 2.086 MB / 1.334 GB, free: 5.5 MB / 1.029 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.651342269964516]