Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.388/1.388, allocations: 249.5 MB / 257 MB, free: 6.922 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001036/0.001036, allocations: 172.9 kB / 316.3 MB, free: 3.301 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.783/1.783, allocations: 205.3 MB / 0.5671 GB, free: 15.84 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001016/0.001016, allocations: 89.31 kB / 0.6714 GB, free: 4.957 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.165e-05/2.18e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2166, allocations: 106.4 MB / 0.8853 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7508/0.9674, allocations: 134.1 MB / 1.016 GB, free: 3.336 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.9677, allocations: 75.86 kB / 1.016 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01322/0.9809, allocations: 4.968 MB / 1.021 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.284e-06/0.981, allocations: 0 / 1.021 GB, free: 15.16 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.661e-05/0.981, allocations: 7.938 kB / 1.021 GB, free: 15.15 MB / 0.6511 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.000662/0.9817, allocations: 0.5162 MB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.9818, allocations: 8.031 kB / 1.022 GB, free: 14.57 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.604e-05/0.9818, allocations: 15.91 kB / 1.022 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003528/0.9822, allocations: 234.4 kB / 1.022 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.9822, allocations: 4 kB / 1.022 GB, free: 14.3 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.924e-05/0.9823, allocations: 8 kB / 1.022 GB, free: 14.29 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001437/0.9824, allocations: 51.23 kB / 1.022 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.9826, allocations: 96.88 kB / 1.022 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.9826, allocations: 4 kB / 1.022 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.9826, allocations: 0 / 1.022 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.953e-05/0.9827, allocations: 4 kB / 1.022 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007088/0.9834, allocations: 391.1 kB / 1.022 GB, free: 13.79 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.9835, allocations: 73.88 kB / 1.023 GB, free: 13.72 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.9836, allocations: 63.77 kB / 1.023 GB, free: 13.68 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.9837, allocations: 7.938 kB / 1.023 GB, free: 13.67 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001862/0.9838, allocations: 161.6 kB / 1.023 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.9839, allocations: 0 / 1.023 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10): time 0.0004024/0.9843, allocations: 200.2 kB / 1.023 GB, free: 13.34 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.925e-05/0.9844, allocations: 174.1 kB / 1.023 GB, free: 13.14 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.9845, allocations: 153.7 kB / 1.023 GB, free: 13 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.9845, allocations: 29.7 kB / 1.023 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.151e-05/0.9846, allocations: 114.6 kB / 1.023 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.9847, allocations: 22.91 kB / 1.023 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.151e-05/0.9847, allocations: 0 / 1.023 GB, free: 12.84 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.9848, allocations: 329.5 kB / 1.024 GB, free: 12.51 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.113e-05/0.9849, allocations: 42.3 kB / 1.024 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.837e-05/0.985, allocations: 87.05 kB / 1.024 GB, free: 12.39 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.754e-05/0.9851, allocations: 52.14 kB / 1.024 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.9851, allocations: 0 / 1.024 GB, free: 12.35 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003203/0.9854, allocations: 195.8 kB / 1.024 GB, free: 12.18 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 8.377e-05/0.9855, allocations: 121.8 kB / 1.024 GB, free: 12.04 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.9855, allocations: 0 / 1.024 GB, free: 12.04 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.9856, allocations: 4 kB / 1.024 GB, free: 12.04 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.9857, allocations: 28.17 kB / 1.024 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.9857, allocations: 0 / 1.024 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.572e-05/0.9858, allocations: 15.98 kB / 1.024 GB, free: 11.99 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.9858, allocations: 14.62 kB / 1.024 GB, free: 11.98 MB / 0.6511 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.0001388/0.986, allocations: 177.6 kB / 1.024 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003114/0.9863, allocations: 208.3 kB / 1.025 GB, free: 11.62 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.9863, allocations: 19.81 kB / 1.025 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.983e-05/0.9864, allocations: 19.89 kB / 1.025 GB, free: 11.59 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.9864, allocations: 7.984 kB / 1.025 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.9864, allocations: 0 / 1.025 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/0.9864, allocations: 3.953 kB / 1.025 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005152/0.9869, allocations: 483.5 kB / 1.025 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.9869, allocations: 0 / 1.025 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.512e-05/0.987, allocations: 11.94 kB / 1.025 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.987, allocations: 0 / 1.025 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.9871, allocations: 11.98 kB / 1.025 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.9871, allocations: 4 kB / 1.025 GB, free: 11.09 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.9871, allocations: 7.891 kB / 1.025 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003622/0.9875, allocations: 302.4 kB / 1.025 GB, free: 10.81 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 4.894e-05/0.9875, allocations: 88.92 kB / 1.026 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.38e-05/0.9876, allocations: 4 kB / 1.026 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.9877, allocations: 8 kB / 1.026 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.045e-05/0.9877, allocations: 11.48 kB / 1.026 GB, free: 10.69 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.985e-05/0.9877, allocations: 19.94 kB / 1.026 GB, free: 10.67 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 8.581e-05/0.9878, allocations: 117.6 kB / 1.026 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9878, allocations: 0 / 1.026 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000272/0.9881, allocations: 28 kB / 1.026 GB, free: 10.54 MB / 0.6511 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.0007487/0.9889, allocations: 0.8642 MB / 1.027 GB, free: 9.695 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003386/0.9892, allocations: 329.3 kB / 1.027 GB, free: 9.355 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.9892, allocations: 0 / 1.027 GB, free: 9.355 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001566/0.9894, allocations: 190.2 kB / 1.027 GB, free: 9.176 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.9896, allocations: 16.42 kB / 1.027 GB, free: 9.16 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006103/0.9902, allocations: 248.2 kB / 1.027 GB, free: 8.91 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003141/0.9906, allocations: 0.7265 MB / 1.028 GB, free: 8.16 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.264e-05/0.9906, allocations: 20.48 kB / 1.028 GB, free: 8.141 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.628e-05/0.9907, allocations: 31.61 kB / 1.028 GB, free: 8.125 MB / 0.6511 GB Notification: Performance of SimCode: time 2.91e-07/0.9907, allocations: 0 / 1.028 GB, free: 8.125 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02123/1.012, allocations: 2.96 MB / 1.031 GB, free: 5.203 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002577/1.012, allocations: 149.4 kB / 1.031 GB, free: 5.008 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.494/2.506, allocations: 0 / 1.031 GB, free: 5.008 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)