Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_6_0_0_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.61/4.61, allocations: 433.2 MB / 440.7 MB, free: 10.52 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.77e-05/2.771e-05, allocations: 4 kB / 0.5325 GB, free: 1.895 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7331/0.7331, allocations: 98.71 MB / 0.6289 GB, free: 15.77 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.236/0.9692, allocations: 125.7 MB / 0.7517 GB, free: 1.855 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003105/0.9696, allocations: 87.88 kB / 0.7518 GB, free: 1.77 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.01108/0.9807, allocations: 2.507 MB / 0.7542 GB, free: 15.23 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.693e-06/0.9807, allocations: 0 / 0.7542 GB, free: 15.23 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.845e-05/0.9808, allocations: 4 kB / 0.7542 GB, free: 15.23 MB / 0.6355 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.0007379/0.9815, allocations: 0.5088 MB / 0.7547 GB, free: 14.65 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.9816, allocations: 8.031 kB / 0.7547 GB, free: 14.64 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.34e-05/0.9817, allocations: 27.77 kB / 0.7548 GB, free: 14.62 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003609/0.982, allocations: 214.8 kB / 0.755 GB, free: 14.37 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.9821, allocations: 4 kB / 0.755 GB, free: 14.36 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.557e-05/0.9821, allocations: 11.98 kB / 0.755 GB, free: 14.35 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001843/0.9823, allocations: 39.98 kB / 0.755 GB, free: 14.31 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002255/0.9825, allocations: 93.58 kB / 0.7551 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.292e-05/0.9826, allocations: 3.984 kB / 0.7551 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.917e-05/0.9826, allocations: 0 / 0.7551 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.9826, allocations: 4 kB / 0.7551 GB, free: 14.21 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008538/0.9835, allocations: 365.3 kB / 0.7555 GB, free: 13.81 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.9837, allocations: 70.58 kB / 0.7555 GB, free: 13.73 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.9839, allocations: 52.84 kB / 0.7556 GB, free: 13.68 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.9839, allocations: 4 kB / 0.7556 GB, free: 13.68 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002597/0.9842, allocations: 154.9 kB / 0.7557 GB, free: 13.5 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 2.825e-06/0.9842, allocations: 0 / 0.7557 GB, free: 13.5 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0005948/0.9848, allocations: 193.3 kB / 0.7559 GB, free: 13.3 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.9849, allocations: 166.2 kB / 0.7561 GB, free: 13.11 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/0.9851, allocations: 153.8 kB / 0.7562 GB, free: 12.95 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.147e-05/0.9852, allocations: 25.7 kB / 0.7562 GB, free: 12.91 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 9.378e-05/0.9853, allocations: 112.3 kB / 0.7564 GB, free: 12.8 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.68e-05/0.9854, allocations: 19.66 kB / 0.7564 GB, free: 12.78 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.791e-05/0.9854, allocations: 7.938 kB / 0.7564 GB, free: 12.77 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.9855, allocations: 322.8 kB / 0.7567 GB, free: 12.45 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.9857, allocations: 39.98 kB / 0.7567 GB, free: 12.41 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.9858, allocations: 81.12 kB / 0.7568 GB, free: 12.3 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001528/0.986, allocations: 47.91 kB / 0.7568 GB, free: 12.26 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.986, allocations: 0 / 0.7568 GB, free: 12.26 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000526/0.9865, allocations: 173.3 kB / 0.757 GB, free: 12.08 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 9.686e-05/0.9867, allocations: 118.8 kB / 0.7571 GB, free: 11.94 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.9867, allocations: 4 kB / 0.7571 GB, free: 11.94 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/0.9867, allocations: 4.25 kB / 0.7571 GB, free: 11.93 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002046/0.9869, allocations: 19.98 kB / 0.7572 GB, free: 11.91 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.987, allocations: 7.938 kB / 0.7572 GB, free: 11.91 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001609/0.9871, allocations: 11.95 kB / 0.7572 GB, free: 11.89 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/0.9872, allocations: 8 kB / 0.7572 GB, free: 11.89 MB / 0.6355 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001696/0.9873, allocations: 172.4 kB / 0.7573 GB, free: 11.7 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005337/0.9879, allocations: 189.4 kB / 0.7575 GB, free: 11.51 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.901e-05/0.988, allocations: 15.91 kB / 0.7575 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.847e-05/0.988, allocations: 17.84 kB / 0.7576 GB, free: 11.48 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.988, allocations: 7.953 kB / 0.7576 GB, free: 11.47 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.9881, allocations: 0 / 0.7576 GB, free: 11.47 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.9881, allocations: 3.984 kB / 0.7576 GB, free: 11.47 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007685/0.9889, allocations: 446.9 kB / 0.758 GB, free: 10.99 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.9889, allocations: 0 / 0.758 GB, free: 10.99 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/0.989, allocations: 19.92 kB / 0.758 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.989, allocations: 0 / 0.758 GB, free: 10.97 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/0.9891, allocations: 11.98 kB / 0.758 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.005e-06/0.9891, allocations: 7.953 kB / 0.758 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.9891, allocations: 0 / 0.758 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005541/0.9897, allocations: 279.3 kB / 0.7583 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 7.036e-05/0.9898, allocations: 100.9 kB / 0.7584 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.735e-05/0.9898, allocations: 4 kB / 0.7584 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.99, allocations: 11.98 kB / 0.7584 GB, free: 10.53 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.455e-05/0.9901, allocations: 15.89 kB / 0.7584 GB, free: 10.51 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/0.9901, allocations: 7.984 kB / 0.7584 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0001362/0.9903, allocations: 124.3 kB / 0.7586 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.41e-07/0.9903, allocations: 0 / 0.7586 GB, free: 10.38 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0004374/0.9907, allocations: 32 kB / 0.7586 GB, free: 10.35 MB / 0.6355 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001118/0.9919, allocations: 0.8468 MB / 0.7594 GB, free: 9.477 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0005015/0.9924, allocations: 313.5 kB / 0.7597 GB, free: 9.121 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.9924, allocations: 0 / 0.7597 GB, free: 9.121 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002581/0.9927, allocations: 175.3 kB / 0.7599 GB, free: 8.926 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003492/0.993, allocations: 21.39 kB / 0.7599 GB, free: 8.902 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009179/0.994, allocations: 234.3 kB / 0.7601 GB, free: 8.641 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.9943, allocations: 0.708 MB / 0.7608 GB, free: 7.906 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0001185/0.9944, allocations: 20.53 kB / 0.7608 GB, free: 7.887 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.572e-05/0.9946, allocations: 39.42 kB / 0.7609 GB, free: 7.848 MB / 0.6355 GB Notification: Performance of SimCode: time 1.002e-06/0.9946, allocations: 3.938 kB / 0.7609 GB, free: 7.844 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04129/1.036, allocations: 2.701 MB / 0.7635 GB, free: 5.172 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003137/1.036, allocations: 138 kB / 0.7636 GB, free: 4.984 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.718/3.754, allocations: 0 / 0.7636 GB, free: 4.984 MB / 0.6355 GB