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.001786/0.001786, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.002256/0.002256, allocations: 207.9 kB / 22.99 MB, free: 4.984 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.436/1.436, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.165/3.165, allocations: 0.49 GB / 0.7959 GB, free: 35.34 MB / 0.6231 GB " [Timeout remaining time 177] 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.002008/0.002008, allocations: 67.02 kB / 1.155 GB, free: 25.19 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3124, allocations: 176.1 MB / 1.327 GB, free: 1.012 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003039/0.3154, allocations: 1.622 MB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001204/0.3166, allocations: 0.6547 MB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.303e-05/0.3167, allocations: 0 / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001426/0.3168, allocations: 19.8 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002148/0.317, allocations: 50 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000471/0.3175, allocations: 127.7 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002752/0.3178, allocations: 191.5 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.3179, allocations: 21.62 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/0.3181, allocations: 91.75 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.3182, allocations: 87.72 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.61e-05/0.3182, allocations: 12 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.502e-05/0.3183, allocations: 32 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.03e-05/0.3184, allocations: 39.83 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.578e-05/0.3185, allocations: 59.78 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.3188, allocations: 175.3 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3188, allocations: 0 / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3188, allocations: 0 / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.3188, allocations: 4 kB / 1.33 GB, free: 13.82 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.0007711/0.3195, allocations: 0.4905 MB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.3196, allocations: 11.97 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.3198, allocations: 32.77 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003438/0.3201, allocations: 183 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.3201, allocations: 12.36 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.536e-05/0.3201, allocations: 12.38 kB / 1.331 GB, free: 13.01 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003322/0.3205, allocations: 173.1 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.3205, allocations: 3.938 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.092e-05/0.3205, allocations: 8 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.3205, allocations: 0 / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002486/0.3208, allocations: 127.3 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006552/0.3214, allocations: 348.2 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002403/0.3217, allocations: 133.9 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.3219, allocations: 124.2 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.3219, allocations: 8 kB / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000313/0.3222, allocations: 238.1 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.3222, allocations: 3.938 kB / 1.332 GB, free: 11.73 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.000867/0.3231, allocations: 479.8 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001064/0.3232, allocations: 166.2 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002016/0.3234, allocations: 183.6 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.306e-05/0.3234, allocations: 29.7 kB / 1.333 GB, free: 10.8 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.871e-05/0.3235, allocations: 104.4 kB / 1.333 GB, free: 10.69 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.436e-05/0.3235, allocations: 31.73 kB / 1.333 GB, free: 10.66 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.073e-05/0.3236, allocations: 45.64 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3237, allocations: 330.8 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.324, allocations: 158.8 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002483/0.3242, allocations: 217.6 kB / 1.334 GB, free: 9.832 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003705/0.3246, allocations: 317.2 kB / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3246, allocations: 0 / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006642/0.3252, allocations: 459 kB / 1.334 GB, free: 8.957 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 8.631e-05/0.3253, allocations: 122.7 kB / 1.335 GB, free: 8.812 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3253, allocations: 4 kB / 1.335 GB, free: 8.809 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.3254, allocations: 0 / 1.335 GB, free: 8.809 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.3255, allocations: 23.92 kB / 1.335 GB, free: 8.785 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.3255, allocations: 0 / 1.335 GB, free: 8.785 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.3256, allocations: 23.92 kB / 1.335 GB, free: 8.762 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.3256, allocations: 12.25 kB / 1.335 GB, free: 8.75 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.0001739/0.3258, allocations: 195.1 kB / 1.335 GB, free: 8.539 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.899e-05/0.3258, allocations: 19.91 kB / 1.335 GB, free: 8.52 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.533e-05/0.3259, allocations: 21.39 kB / 1.335 GB, free: 8.492 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3259, allocations: 0 / 1.335 GB, free: 8.492 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3259, allocations: 0 / 1.335 GB, free: 8.492 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.3259, allocations: 0 / 1.335 GB, free: 8.492 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000806/0.3267, allocations: 0.5905 MB / 1.335 GB, free: 7.84 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.3267, allocations: 0 / 1.335 GB, free: 7.84 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.831e-05/0.3267, allocations: 12 kB / 1.335 GB, free: 7.828 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.3268, allocations: 0 / 1.335 GB, free: 7.828 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.3268, allocations: 11.98 kB / 1.335 GB, free: 7.816 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.3268, allocations: 4 kB / 1.335 GB, free: 7.812 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3268, allocations: 0 / 1.335 GB, free: 7.812 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006601/0.3274, allocations: 470 kB / 1.336 GB, free: 7.312 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.257e-05/0.3275, allocations: 11.94 kB / 1.336 GB, free: 7.301 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.3275, allocations: 8 kB / 1.336 GB, free: 7.293 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.3276, allocations: 7.984 kB / 1.336 GB, free: 7.285 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.583e-05/0.3277, allocations: 8 kB / 1.336 GB, free: 7.277 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.3277, allocations: 11.98 kB / 1.336 GB, free: 7.266 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001101/0.3278, allocations: 124.1 kB / 1.336 GB, free: 7.145 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3278, allocations: 0 / 1.336 GB, free: 7.145 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003158/0.3281, allocations: 51.81 kB / 1.336 GB, free: 7.094 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.0002561/0.3284, allocations: 126.5 kB / 1.336 GB, free: 6.969 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006618/0.329, allocations: 0.5194 MB / 1.337 GB, free: 6.363 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.329, allocations: 0 / 1.337 GB, free: 6.363 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0002929/0.3293, allocations: 242.1 kB / 1.337 GB, free: 6.09 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.3297, allocations: 19.98 kB / 1.337 GB, free: 6.07 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006551/0.3303, allocations: 359.9 kB / 1.337 GB, free: 5.68 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001032/0.3304, allocations: 97.03 kB / 1.337 GB, free: 5.559 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.759e-05/0.3305, allocations: 24.41 kB / 1.337 GB, free: 5.535 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.645e-05/0.3305, allocations: 15.44 kB / 1.337 GB, free: 5.523 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.3305, allocations: 0 / 1.337 GB, free: 5.523 MB / 1.029 GB Notification: Performance of Templates: time 0.005999/0.3365, allocations: 2.275 MB / 1.34 GB, free: 3.289 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 -s gbode -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/jenkins1/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.646850892997463]