Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.625/1.625, allocations: 306.1 MB / 321.4 MB, free: 10.77 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009081/0.0009081, allocations: 187.2 kB / 393.1 MB, free: 4.09 MB / 314.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 225.7 MB / 0.6743 GB, free: 12.6 MB / 0.4948 GB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007832/0.0007831, allocations: 87.91 kB / 0.7935 GB, free: 40.09 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003307/0.0003307, allocations: 9.688 kB / 0.9224 GB, free: 8.672 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4919/0.4922, allocations: 121.3 MB / 1.041 GB, free: 58.31 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001727/0.494, allocations: 1.311 MB / 1.042 GB, free: 57.46 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0008904/0.4949, allocations: 0.9135 MB / 1.043 GB, free: 56.68 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.317e-05/0.495, allocations: 3.594 kB / 1.043 GB, free: 56.68 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.4952, allocations: 14.36 kB / 1.043 GB, free: 56.67 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.0001692/0.4953, allocations: 37.02 kB / 1.043 GB, free: 56.65 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003395/0.4957, allocations: 106.1 kB / 1.043 GB, free: 56.59 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001536/0.4958, allocations: 162.8 kB / 1.043 GB, free: 56.53 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.496, allocations: 28.22 kB / 1.043 GB, free: 56.52 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.4961, allocations: 73.48 kB / 1.043 GB, free: 56.49 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.4962, allocations: 80.3 kB / 1.044 GB, free: 56.46 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.965e-05/0.4963, allocations: 8.938 kB / 1.044 GB, free: 56.45 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 5.756e-05/0.4963, allocations: 14.72 kB / 1.044 GB, free: 56.45 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 7.731e-05/0.4964, allocations: 29.41 kB / 1.044 GB, free: 56.44 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 8.591e-05/0.4965, allocations: 88.55 kB / 1.044 GB, free: 56.38 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001942/0.4967, allocations: 155 kB / 1.044 GB, free: 56.33 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.4967, allocations: 0.5625 kB / 1.044 GB, free: 56.33 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4967, allocations: 0.9062 kB / 1.044 GB, free: 56.33 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.4967, allocations: 2.031 kB / 1.044 GB, free: 56.33 MB / 0.698 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.0005454/0.4973, allocations: 0.5311 MB / 1.044 GB, free: 55.79 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.4973, allocations: 9.938 kB / 1.044 GB, free: 55.79 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.845e-05/0.4974, allocations: 16.47 kB / 1.044 GB, free: 55.79 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002524/0.4976, allocations: 228.4 kB / 1.045 GB, free: 55.56 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.4977, allocations: 10.19 kB / 1.045 GB, free: 55.56 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.141e-05/0.4977, allocations: 15 kB / 1.045 GB, free: 55.56 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002548/0.498, allocations: 124.6 kB / 1.045 GB, free: 55.5 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.498, allocations: 2.25 kB / 1.045 GB, free: 55.5 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.498, allocations: 2.859 kB / 1.045 GB, free: 55.5 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.498, allocations: 0.7812 kB / 1.045 GB, free: 55.5 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001926/0.4982, allocations: 83.05 kB / 1.045 GB, free: 55.48 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005412/0.4988, allocations: 415.5 kB / 1.045 GB, free: 55.16 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/0.499, allocations: 96.98 kB / 1.045 GB, free: 55.11 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.4991, allocations: 80.66 kB / 1.045 GB, free: 55.09 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.4991, allocations: 3.812 kB / 1.045 GB, free: 55.09 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002501/0.4994, allocations: 187 kB / 1.046 GB, free: 54.95 MB / 0.698 GB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.4994, allocations: 0 / 1.046 GB, free: 54.95 MB / 0.698 GB Notification: Performance of matching and sorting (n=10): time 0.0006523/0.5001, allocations: 361.8 kB / 1.046 GB, free: 54.79 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.5001, allocations: 167.6 kB / 1.046 GB, free: 54.6 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.5003, allocations: 177.2 kB / 1.046 GB, free: 54.46 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.5003, allocations: 40.27 kB / 1.046 GB, free: 54.43 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.457e-05/0.5004, allocations: 104.7 kB / 1.046 GB, free: 54.32 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.487e-05/0.5004, allocations: 32.5 kB / 1.046 GB, free: 54.3 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.075e-05/0.5004, allocations: 3.75 kB / 1.046 GB, free: 54.3 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 4.565e-05/0.5005, allocations: 331.3 kB / 1.047 GB, free: 53.97 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.5006, allocations: 56.7 kB / 1.047 GB, free: 53.96 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.5007, allocations: 109.9 kB / 1.047 GB, free: 53.88 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002569/0.501, allocations: 312.9 kB / 1.047 GB, free: 53.59 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.501, allocations: 3.844 kB / 1.047 GB, free: 53.59 MB / 0.698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004489/0.5015, allocations: 356.3 kB / 1.048 GB, free: 53.37 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 4.64e-05/0.5015, allocations: 123.3 kB / 1.048 GB, free: 53.24 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.5015, allocations: 1.5 kB / 1.048 GB, free: 53.24 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.5016, allocations: 1.906 kB / 1.048 GB, free: 53.24 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.5017, allocations: 18.59 kB / 1.048 GB, free: 53.24 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.5017, allocations: 7.062 kB / 1.048 GB, free: 53.23 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.965e-05/0.5018, allocations: 28.08 kB / 1.048 GB, free: 53.22 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.5018, allocations: 7.562 kB / 1.048 GB, free: 53.22 MB / 0.698 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * 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.00011/0.5019, allocations: 195.9 kB / 1.048 GB, free: 53.03 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.425e-05/0.502, allocations: 13.88 kB / 1.048 GB, free: 53.03 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.302e-05/0.502, allocations: 22.28 kB / 1.048 GB, free: 53.02 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.502, allocations: 0 / 1.048 GB, free: 53.02 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.502, allocations: 0 / 1.048 GB, free: 53.02 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.502, allocations: 4 kB / 1.048 GB, free: 53.02 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006027/0.5026, allocations: 0.593 MB / 1.048 GB, free: 52.57 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.5026, allocations: 0 / 1.048 GB, free: 52.57 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.717e-05/0.5027, allocations: 16.41 kB / 1.049 GB, free: 52.57 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.5027, allocations: 5.281 kB / 1.049 GB, free: 52.57 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.5028, allocations: 7.25 kB / 1.049 GB, free: 52.57 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.5028, allocations: 0 / 1.049 GB, free: 52.57 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5028, allocations: 7.625 kB / 1.049 GB, free: 52.56 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004717/0.5032, allocations: 412.8 kB / 1.049 GB, free: 52.3 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.923e-05/0.5033, allocations: 93.27 kB / 1.049 GB, free: 52.2 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.601e-05/0.5033, allocations: 11.34 kB / 1.049 GB, free: 52.19 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.5034, allocations: 13 kB / 1.049 GB, free: 52.19 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.5035, allocations: 8.547 kB / 1.049 GB, free: 52.18 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.5035, allocations: 12.11 kB / 1.049 GB, free: 52.18 MB / 0.698 GB Notification: Performance of sorting global known variables: time 8.056e-05/0.5036, allocations: 126.8 kB / 1.049 GB, free: 52.09 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5036, allocations: 0 / 1.049 GB, free: 52.09 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000259/0.5039, allocations: 34.12 kB / 1.049 GB, free: 52.09 MB / 0.698 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.0002022/0.5041, allocations: 146.5 kB / 1.049 GB, free: 51.98 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004333/0.5045, allocations: 371.9 kB / 1.05 GB, free: 51.69 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.5045, allocations: 0 / 1.05 GB, free: 51.69 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000197/0.5047, allocations: 206.8 kB / 1.05 GB, free: 51.54 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.505, allocations: 20.45 kB / 1.05 GB, free: 51.53 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004877/0.5055, allocations: 327.3 kB / 1.05 GB, free: 51.31 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001213/0.5057, allocations: 0.7071 MB / 1.051 GB, free: 50.61 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 6.762e-05/0.5057, allocations: 23.61 kB / 1.051 GB, free: 50.61 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.963e-05/0.5058, allocations: 14.91 kB / 1.051 GB, free: 50.61 MB / 0.698 GB Notification: Performance of SimCode: time 2.2e-07/0.5058, allocations: 0 / 1.051 GB, free: 50.61 MB / 0.698 GB Notification: Performance of Templates: time 0.004449/0.5102, allocations: 1.981 MB / 1.053 GB, free: 50.36 MB / 0.698 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)