Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 1.58/1.58, allocations: 287.4 MB / 302.6 MB, free: 8.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 184.6 kB / 371.1 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.475/1.475, allocations: 205.4 MB / 0.6298 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008354/0.0008356, allocations: 91.52 kB / 0.7431 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004235/0.0004238, allocations: 14.41 kB / 0.8662 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2463, allocations: 115.3 MB / 0.9787 GB, free: 28.12 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002164/0.2485, allocations: 1.308 MB / 0.98 GB, free: 26.79 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0009407/0.2495, allocations: 0.6255 MB / 0.9806 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.912e-05/0.2496, allocations: 0 / 0.9806 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001825/0.2498, allocations: 11.94 kB / 0.9806 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000219/0.25, allocations: 39.81 kB / 0.9807 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003648/0.2504, allocations: 95.83 kB / 0.9808 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001628/0.2505, allocations: 143.6 kB / 0.9809 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001439/0.2507, allocations: 25.11 kB / 0.9809 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001415/0.2508, allocations: 71.81 kB / 0.981 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.251, allocations: 79.72 kB / 0.9811 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.72e-05/0.251, allocations: 8 kB / 0.9811 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.658e-05/0.2511, allocations: 12 kB / 0.9811 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.454e-05/0.2512, allocations: 27.91 kB / 0.9811 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.809e-05/0.2513, allocations: 49.64 kB / 0.9812 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.2514, allocations: 116 kB / 0.9813 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.2514, allocations: 4 kB / 0.9813 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.944e-06/0.2514, allocations: 0 / 0.9813 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.083e-05/0.2515, allocations: 0 / 0.9813 GB, free: 25.48 MB / 0.6198 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.0005571/0.252, allocations: 0.527 MB / 0.9818 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.2521, allocations: 12.03 kB / 0.9818 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.533e-05/0.2521, allocations: 34.75 kB / 0.9818 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.307e-05/0.2522, allocations: 16.75 kB / 0.9819 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/0.2524, allocations: 244.1 kB / 0.9821 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.853e-05/0.2525, allocations: 8.375 kB / 0.9821 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.619e-05/0.2525, allocations: 12.38 kB / 0.9821 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002557/0.2527, allocations: 125.4 kB / 0.9822 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.2528, allocations: 0 / 0.9822 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.2528, allocations: 4 kB / 0.9822 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.2528, allocations: 4 kB / 0.9822 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.253, allocations: 71.95 kB / 0.9823 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005412/0.2535, allocations: 436.5 kB / 0.9827 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001658/0.2537, allocations: 86.53 kB / 0.9828 GB, free: 23.74 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/0.2538, allocations: 76.81 kB / 0.9829 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.2539, allocations: 8.141 kB / 0.9829 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000245/0.2541, allocations: 182.8 kB / 0.9831 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.2541, allocations: 0 / 0.9831 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0006193/0.2548, allocations: 364.7 kB / 0.9834 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.2548, allocations: 174.1 kB / 0.9836 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.255, allocations: 170.7 kB / 0.9837 GB, free: 22.69 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.255, allocations: 29.7 kB / 0.9838 GB, free: 22.65 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.964e-05/0.255, allocations: 116.2 kB / 0.9839 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.2551, allocations: 27.64 kB / 0.9839 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.101e-05/0.2551, allocations: 8 kB / 0.9839 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.18e-05/0.2552, allocations: 330.8 kB / 0.9842 GB, free: 22.17 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.2553, allocations: 55.95 kB / 0.9843 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.2554, allocations: 102.8 kB / 0.9844 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000249/0.2557, allocations: 316.9 kB / 0.9847 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2557, allocations: 0 / 0.9847 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004182/0.2561, allocations: 356.2 kB / 0.985 GB, free: 21.24 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.205e-05/0.2562, allocations: 118.7 kB / 0.9851 GB, free: 21.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.2562, allocations: 4 kB / 0.9851 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.2562, allocations: 0 / 0.9851 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.2563, allocations: 23.98 kB / 0.9852 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.2563, allocations: 4 kB / 0.9852 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.067e-05/0.2564, allocations: 20.17 kB / 0.9852 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.924e-05/0.2565, allocations: 8.281 kB / 0.9852 GB, free: 21.04 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000116/0.2566, allocations: 202.4 kB / 0.9854 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.37e-05/0.2566, allocations: 15.81 kB / 0.9854 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.166e-05/0.2566, allocations: 21.33 kB / 0.9854 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.2567, allocations: 4 kB / 0.9854 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2567, allocations: 0 / 0.9854 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.2567, allocations: 0 / 0.9854 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005584/0.2572, allocations: 0.5914 MB / 0.986 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.2572, allocations: 3.984 kB / 0.986 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.929e-05/0.2573, allocations: 12 kB / 0.986 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.2573, allocations: 0 / 0.986 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.2573, allocations: 11.98 kB / 0.986 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.2574, allocations: 8 kB / 0.986 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2574, allocations: 3.938 kB / 0.986 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004319/0.2578, allocations: 414.5 kB / 0.9864 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.123e-05/0.2578, allocations: 88.92 kB / 0.9865 GB, free: 19.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.321e-05/0.2579, allocations: 8 kB / 0.9865 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.258, allocations: 15.98 kB / 0.9865 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.271e-05/0.258, allocations: 7.922 kB / 0.9865 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.2581, allocations: 8 kB / 0.9865 GB, free: 19.51 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.831e-05/0.2581, allocations: 132.3 kB / 0.9867 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2581, allocations: 4 kB / 0.9867 GB, free: 19.38 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002494/0.2584, allocations: 32 kB / 0.9867 GB, free: 19.34 MB / 0.6198 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 (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.0007256/0.2591, allocations: 0.9773 MB / 0.9877 GB, free: 18.33 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003911/0.2595, allocations: 365.4 kB / 0.988 GB, free: 17.93 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2595, allocations: 0.5 kB / 0.988 GB, free: 17.93 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001792/0.2597, allocations: 214.7 kB / 0.9882 GB, free: 17.69 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.26, allocations: 19.94 kB / 0.9882 GB, free: 17.67 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.2614, allocations: 0.9519 MB / 0.9892 GB, free: 16.66 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001379/0.2615, allocations: 0.716 MB / 0.9899 GB, free: 15.92 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.012e-05/0.2616, allocations: 16.55 kB / 0.9899 GB, free: 15.9 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.229e-05/0.2617, allocations: 39.42 kB / 0.9899 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of SimCode: time 2.21e-07/0.2617, allocations: 0 / 0.9899 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4788/0.7404, allocations: 3.359 MB / 0.9932 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002253/0.7407, allocations: 184.2 kB / 0.9934 GB, free: 12.4 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.599/2.34, allocations: 3.938 kB / 0.9934 GB, free: 12.4 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)