Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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: "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007657/0.007665, allocations: 102.7 kB / 15.74 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001932/0.001932, allocations: 193.6 kB / 16.67 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002484/0.002484, allocations: 279.2 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.26/1.26, allocations: 178.6 MB / 0.5074 GB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002647/0.002647, allocations: 99.83 kB / 0.6943 GB, free: 15.24 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4619/0.4645, allocations: 89.12 MB / 0.7813 GB, free: 1.172 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002475/0.4671, allocations: 1.614 MB / 0.7829 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001048/0.4681, allocations: 0.6102 MB / 0.7835 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.291e-05/0.4682, allocations: 1.312 kB / 0.7835 GB, free: 15.43 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001512/0.4684, allocations: 26.89 kB / 0.7835 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.4686, allocations: 43.78 kB / 0.7836 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003786/0.469, allocations: 108.6 kB / 0.7837 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002803/0.4693, allocations: 207.6 kB / 0.7839 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.4694, allocations: 33.39 kB / 0.7839 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.4695, allocations: 88.62 kB / 0.784 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.4697, allocations: 87.62 kB / 0.7841 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.889e-05/0.4697, allocations: 13.78 kB / 0.7841 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.512e-05/0.4698, allocations: 28.7 kB / 0.7841 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.705e-05/0.4699, allocations: 24.39 kB / 0.7841 GB, free: 15.03 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.788e-05/0.47, allocations: 79.89 kB / 0.7842 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003216/0.4703, allocations: 164.4 kB / 0.7844 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.86e-06/0.4703, allocations: 0 / 0.7844 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.024e-06/0.4703, allocations: 1.188 kB / 0.7844 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.4704, allocations: 0 / 0.7844 GB, free: 14.86 MB / 0.5606 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.4711, allocations: 0.5653 MB / 0.7849 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.4711, allocations: 10.22 kB / 0.7849 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.525e-05/0.4712, allocations: 37.61 kB / 0.785 GB, free: 14.24 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.61e-05/0.4712, allocations: 20.47 kB / 0.785 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003205/0.4716, allocations: 249.1 kB / 0.7852 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.4716, allocations: 6.219 kB / 0.7852 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.658e-05/0.4716, allocations: 11.44 kB / 0.7852 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.4719, allocations: 120 kB / 0.7854 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.4719, allocations: 0 / 0.7854 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.4719, allocations: 2.625 kB / 0.7854 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.472, allocations: 5.406 kB / 0.7854 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002028/0.4722, allocations: 70.94 kB / 0.7854 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006424/0.4728, allocations: 412.5 kB / 0.7858 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001934/0.473, allocations: 91.22 kB / 0.7859 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.4732, allocations: 75.5 kB / 0.786 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.4732, allocations: 1.375 kB / 0.786 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.4735, allocations: 181.4 kB / 0.7862 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=10): time 1.442e-06/0.4735, allocations: 4 kB / 0.7862 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10): time 0.0009541/0.4745, allocations: 351.6 kB / 0.7865 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001763/0.4747, allocations: 167.8 kB / 0.7867 GB, free: 12.81 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002478/0.4749, allocations: 178.2 kB / 0.7868 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.423e-05/0.475, allocations: 32.92 kB / 0.7869 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001064/0.4751, allocations: 108 kB / 0.787 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.919e-05/0.4752, allocations: 28.56 kB / 0.787 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.4753, allocations: 46.91 kB / 0.787 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001672/0.4755, allocations: 326 kB / 0.7873 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.4756, allocations: 57.36 kB / 0.7874 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/0.4758, allocations: 100.5 kB / 0.7875 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003694/0.4762, allocations: 317.3 kB / 0.7878 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.4762, allocations: 1.156 kB / 0.7878 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005589/0.4768, allocations: 340.6 kB / 0.7881 GB, free: 11.47 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.26e-05/0.4769, allocations: 117.1 kB / 0.7882 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-06/0.4769, allocations: 9.984 kB / 0.7882 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.4769, allocations: 2.531 kB / 0.7882 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.477, allocations: 17.03 kB / 0.7883 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.4771, allocations: 10.17 kB / 0.7883 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.4772, allocations: 12.97 kB / 0.7883 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.267e-05/0.4773, allocations: 11.78 kB / 0.7883 GB, free: 11.32 MB / 0.5606 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.0002339/0.4775, allocations: 202.3 kB / 0.7885 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.565e-05/0.4776, allocations: 17.22 kB / 0.7885 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.571e-05/0.4777, allocations: 24.64 kB / 0.7885 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.4777, allocations: 2.031 kB / 0.7885 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4777, allocations: 0 / 0.7885 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.4777, allocations: 0 / 0.7885 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008119/0.4785, allocations: 0.582 MB / 0.7891 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.818e-06/0.4785, allocations: 5.125 kB / 0.7891 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.5e-05/0.4786, allocations: 12.3 kB / 0.7891 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.4786, allocations: 288 / 0.7891 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.855e-05/0.4786, allocations: 5.844 kB / 0.7891 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.4786, allocations: 4 kB / 0.7891 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.4786, allocations: 9.062 kB / 0.7891 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005694/0.4792, allocations: 403 kB / 0.7895 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.253e-05/0.4793, allocations: 92.5 kB / 0.7896 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.468e-05/0.4793, allocations: 4.219 kB / 0.7896 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.4794, allocations: 10.38 kB / 0.7896 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.314e-05/0.4795, allocations: 15.08 kB / 0.7896 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.4795, allocations: 10.59 kB / 0.7896 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001047/0.4796, allocations: 126.6 kB / 0.7898 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4796, allocations: 0 / 0.7898 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003373/0.48, allocations: 38.78 kB / 0.7898 GB, free: 10.05 MB / 0.5606 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.001046/0.481, allocations: 0.9545 MB / 0.7907 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005106/0.4815, allocations: 366 kB / 0.7911 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.4816, allocations: 4 kB / 0.7911 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002488/0.4818, allocations: 202.2 kB / 0.7913 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.4821, allocations: 27.16 kB / 0.7913 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002678/0.4848, allocations: 2.117 MB / 0.7934 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.4852, allocations: 0.707 MB / 0.7941 GB, free: 6.211 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.001e-05/0.4852, allocations: 25.03 kB / 0.7941 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.968e-05/0.4853, allocations: 37.64 kB / 0.7941 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of SimCode: time 4.01e-07/0.4853, allocations: 0 / 0.7941 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03347/0.5188, allocations: 3.651 MB / 0.7977 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.975/8.494, allocations: 14.55 kB / 0.7977 GB, free: 4.246 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)