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.001965/0.001965, allocations: 101.8 kB / 18.83 MB, free: 3.023 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.002374/0.002374, allocations: 193.5 kB / 22.1 MB, free: 4.625 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.482/1.482, allocations: 225.6 MB / 250.8 MB, free: 13.04 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.245/3.245, allocations: 495.8 MB / 0.783 GB, free: 33.5 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.001983/0.001983, allocations: 65.11 kB / 1.137 GB, free: 33.91 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3544/0.3564, allocations: 173.6 MB / 1.307 GB, free: 1.848 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003364/0.3597, allocations: 1.641 MB / 1.308 GB, free: 200 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.3609, allocations: 0.6273 MB / 1.309 GB, free: 15.56 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.409e-05/0.3609, allocations: 3.938 kB / 1.309 GB, free: 15.56 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.3611, allocations: 19.86 kB / 1.309 GB, free: 15.54 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002383/0.3613, allocations: 43.02 kB / 1.309 GB, free: 15.5 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004312/0.3618, allocations: 115.7 kB / 1.309 GB, free: 15.39 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002996/0.3621, allocations: 191.6 kB / 1.309 GB, free: 15.2 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.3622, allocations: 21.05 kB / 1.309 GB, free: 15.18 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.3624, allocations: 87.75 kB / 1.309 GB, free: 15.09 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001449/0.3625, allocations: 83.72 kB / 1.309 GB, free: 15.01 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.351e-05/0.3625, allocations: 16 kB / 1.31 GB, free: 14.99 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.92e-05/0.3626, allocations: 28 kB / 1.31 GB, free: 14.96 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.3627, allocations: 39.83 kB / 1.31 GB, free: 14.93 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.3628, allocations: 71.66 kB / 1.31 GB, free: 14.86 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002756/0.3631, allocations: 171.3 kB / 1.31 GB, free: 14.69 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3631, allocations: 0 / 1.31 GB, free: 14.69 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.924e-06/0.3631, allocations: 0 / 1.31 GB, free: 14.69 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.673e-06/0.3631, allocations: 0 / 1.31 GB, free: 14.69 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.0007657/0.3639, allocations: 496.4 kB / 1.31 GB, free: 14.15 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.3639, allocations: 12.02 kB / 1.31 GB, free: 14.14 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.388e-05/0.364, allocations: 32.72 kB / 1.31 GB, free: 14.11 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003244/0.3643, allocations: 182.5 kB / 1.31 GB, free: 13.9 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.3644, allocations: 8.312 kB / 1.31 GB, free: 13.89 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.276e-05/0.3644, allocations: 16.38 kB / 1.311 GB, free: 13.88 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.3647, allocations: 113.8 kB / 1.311 GB, free: 13.76 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.3647, allocations: 0 / 1.311 GB, free: 13.76 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.3647, allocations: 7.984 kB / 1.311 GB, free: 13.75 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.3647, allocations: 4 kB / 1.311 GB, free: 13.75 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002084/0.3649, allocations: 63.94 kB / 1.311 GB, free: 13.69 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007405/0.3656, allocations: 391.6 kB / 1.311 GB, free: 13.26 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000209/0.3659, allocations: 78.52 kB / 1.311 GB, free: 13.18 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.366, allocations: 72.84 kB / 1.311 GB, free: 13.1 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.366, allocations: 0 / 1.311 GB, free: 13.1 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002852/0.3663, allocations: 182.7 kB / 1.311 GB, free: 12.9 MB / 1.014 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.3663, allocations: 4 kB / 1.311 GB, free: 12.89 MB / 1.014 GB Notification: Performance of matching and sorting (n=10): time 0.0008052/0.3671, allocations: 357 kB / 1.312 GB, free: 12.53 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/0.3673, allocations: 170.2 kB / 1.312 GB, free: 12.32 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.3675, allocations: 176 kB / 1.312 GB, free: 12.14 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.428e-05/0.3675, allocations: 33.7 kB / 1.312 GB, free: 12.1 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 8.802e-05/0.3676, allocations: 112.4 kB / 1.312 GB, free: 11.98 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.337e-05/0.3676, allocations: 27.8 kB / 1.312 GB, free: 11.96 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.753e-05/0.3677, allocations: 45.7 kB / 1.312 GB, free: 11.91 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.3678, allocations: 322.8 kB / 1.313 GB, free: 11.58 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.368, allocations: 51.97 kB / 1.313 GB, free: 11.53 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.3682, allocations: 102.8 kB / 1.313 GB, free: 11.41 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003917/0.3686, allocations: 317.2 kB / 1.313 GB, free: 11.04 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.3686, allocations: 4 kB / 1.313 GB, free: 11.03 MB / 1.014 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000602/0.3692, allocations: 348.1 kB / 1.313 GB, free: 10.66 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001119/0.3693, allocations: 122.7 kB / 1.313 GB, free: 10.52 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3693, allocations: 8.25 kB / 1.313 GB, free: 10.51 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.3693, allocations: 0 / 1.313 GB, free: 10.51 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.3694, allocations: 19.98 kB / 1.314 GB, free: 10.49 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.3694, allocations: 8 kB / 1.314 GB, free: 10.48 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001085/0.3695, allocations: 19.92 kB / 1.314 GB, free: 10.46 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.3696, allocations: 8 kB / 1.314 GB, free: 10.45 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.0001908/0.3698, allocations: 198.1 kB / 1.314 GB, free: 10.24 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.876e-05/0.3698, allocations: 15.91 kB / 1.314 GB, free: 10.22 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.615e-05/0.3698, allocations: 25.39 kB / 1.314 GB, free: 10.2 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3699, allocations: 4 kB / 1.314 GB, free: 10.19 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3699, allocations: 0 / 1.314 GB, free: 10.19 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3699, allocations: 0 / 1.314 GB, free: 10.19 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008149/0.3707, allocations: 0.5592 MB / 1.314 GB, free: 9.57 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3707, allocations: 0 / 1.314 GB, free: 9.57 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.929e-05/0.3707, allocations: 11.98 kB / 1.314 GB, free: 9.559 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.3708, allocations: 3.938 kB / 1.314 GB, free: 9.555 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.6e-05/0.3708, allocations: 23.97 kB / 1.314 GB, free: 9.531 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.3708, allocations: 4 kB / 1.314 GB, free: 9.527 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3708, allocations: 3.938 kB / 1.314 GB, free: 9.523 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006147/0.3714, allocations: 402.7 kB / 1.315 GB, free: 9.102 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.826e-05/0.3714, allocations: 7.953 kB / 1.315 GB, free: 9.094 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.712e-05/0.3715, allocations: 4 kB / 1.315 GB, free: 9.09 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.3716, allocations: 11.98 kB / 1.315 GB, free: 9.078 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.474e-05/0.3716, allocations: 15.88 kB / 1.315 GB, free: 9.062 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-05/0.3717, allocations: 11.98 kB / 1.315 GB, free: 9.051 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001112/0.3718, allocations: 123.2 kB / 1.315 GB, free: 8.93 MB / 1.014 GB Notification: Performance of sort global known variables: time 6e-08/0.3718, allocations: 0 / 1.315 GB, free: 8.93 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0003038/0.3721, allocations: 43.94 kB / 1.315 GB, free: 8.887 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.0003005/0.3724, allocations: 131.4 kB / 1.315 GB, free: 8.754 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005553/0.3729, allocations: 353.5 kB / 1.315 GB, free: 8.359 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3729, allocations: 0 / 1.315 GB, free: 8.359 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002701/0.3732, allocations: 178.7 kB / 1.316 GB, free: 8.16 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003305/0.3735, allocations: 25.89 kB / 1.316 GB, free: 8.137 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006441/0.3742, allocations: 299.9 kB / 1.316 GB, free: 7.816 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003414/0.3745, allocations: 0.708 MB / 1.317 GB, free: 7.082 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 6.643e-05/0.3746, allocations: 16.47 kB / 1.317 GB, free: 7.066 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.627e-05/0.3746, allocations: 15.44 kB / 1.317 GB, free: 7.051 MB / 1.014 GB Notification: Performance of SimCode: time 4.01e-07/0.3746, allocations: 4 kB / 1.317 GB, free: 7.047 MB / 1.014 GB Notification: Performance of Templates: time 0.0061/0.3807, allocations: 2.142 MB / 1.319 GB, free: 4.93 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.993289758451283]