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 2.67/2.67, allocations: 287.5 MB / 302.4 MB, free: 8.246 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.001342/0.001342, allocations: 184.8 kB / 371 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.105/2.105, allocations: 205.4 MB / 0.6297 GB, free: 10.58 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.001011/0.001011, allocations: 89.16 kB / 0.743 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000661/0.0006614, allocations: 16.38 kB / 0.8659 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2167, allocations: 115.3 MB / 0.9785 GB, free: 28.24 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002046/0.2188, allocations: 1.297 MB / 0.9797 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001118/0.2199, allocations: 0.6169 MB / 0.9803 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.14e-05/0.22, allocations: 4 kB / 0.9803 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.2202, allocations: 23.84 kB / 0.9803 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002179/0.2204, allocations: 36.45 kB / 0.9804 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005433/0.221, allocations: 99.84 kB / 0.9805 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001982/0.2212, allocations: 143.6 kB / 0.9806 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001168/0.2213, allocations: 21.11 kB / 0.9806 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.2215, allocations: 75.75 kB / 0.9807 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001436/0.2216, allocations: 71.73 kB / 0.9808 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.695e-05/0.2217, allocations: 8 kB / 0.9808 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.317e-05/0.2218, allocations: 19.98 kB / 0.9808 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.337e-05/0.2219, allocations: 31.91 kB / 0.9808 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.685e-05/0.2219, allocations: 49.64 kB / 0.9809 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001756/0.2221, allocations: 112 kB / 0.981 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.2221, allocations: 0 / 0.981 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.683e-06/0.2221, allocations: 0 / 0.981 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.2222, allocations: 0 / 0.981 GB, free: 25.61 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.0006296/0.2228, allocations: 0.5289 MB / 0.9815 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.2228, allocations: 16.02 kB / 0.9815 GB, free: 25 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.927e-05/0.2229, allocations: 34.56 kB / 0.9816 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.95e-05/0.223, allocations: 23.77 kB / 0.9816 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002983/0.2233, allocations: 226.8 kB / 0.9818 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.99e-05/0.2233, allocations: 4 kB / 0.9818 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.321e-05/0.2234, allocations: 19.94 kB / 0.9818 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003436/0.2237, allocations: 113.6 kB / 0.9819 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.118e-06/0.2237, allocations: 0 / 0.9819 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.2238, allocations: 8 kB / 0.9819 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.2238, allocations: 0 / 0.9819 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000306/0.2241, allocations: 83.88 kB / 0.982 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007299/0.2248, allocations: 424.5 kB / 0.9824 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002567/0.2251, allocations: 94.56 kB / 0.9825 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002773/0.2254, allocations: 80.81 kB / 0.9826 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.877e-05/0.2255, allocations: 4 kB / 0.9826 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003376/0.2258, allocations: 178.9 kB / 0.9828 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 2.184e-06/0.2258, allocations: 0 / 0.9828 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0009974/0.2268, allocations: 368.7 kB / 0.9831 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/0.2269, allocations: 174.1 kB / 0.9833 GB, free: 23 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001795/0.2271, allocations: 166.7 kB / 0.9834 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.2271, allocations: 33.7 kB / 0.9835 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.517e-05/0.2272, allocations: 112.3 kB / 0.9836 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.336e-05/0.2273, allocations: 31.64 kB / 0.9836 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.718e-05/0.2273, allocations: 4 kB / 0.9836 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.447e-05/0.2274, allocations: 330.8 kB / 0.9839 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.2276, allocations: 51.97 kB / 0.984 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.2278, allocations: 108.3 kB / 0.9841 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.2281, allocations: 174.8 kB / 0.9842 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.2281, allocations: 7.984 kB / 0.9842 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007228/0.2289, allocations: 352.2 kB / 0.9846 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.083e-05/0.2289, allocations: 119.1 kB / 0.9847 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.229, allocations: 0 / 0.9847 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.229, allocations: 11.94 kB / 0.9847 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001772/0.2292, allocations: 27.92 kB / 0.9847 GB, free: 21.37 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.2292, allocations: 80 / 0.9847 GB, free: 21.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001549/0.2294, allocations: 15.98 kB / 0.9848 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.833e-05/0.2294, allocations: 11.98 kB / 0.9848 GB, free: 21.34 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.0001545/0.2296, allocations: 202.5 kB / 0.985 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.771e-05/0.2296, allocations: 15.81 kB / 0.985 GB, free: 21.11 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.318e-05/0.2297, allocations: 17.39 kB / 0.985 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.2297, allocations: 0 / 0.985 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.2297, allocations: 3.953 kB / 0.985 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.2297, allocations: 4 kB / 0.985 GB, free: 21.09 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009618/0.2307, allocations: 0.5915 MB / 0.9856 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.247e-06/0.2307, allocations: 0 / 0.9856 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.2308, allocations: 12 kB / 0.9856 GB, free: 20.41 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.2308, allocations: 0 / 0.9856 GB, free: 20.41 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.758e-05/0.2309, allocations: 15.94 kB / 0.9856 GB, free: 20.4 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.2309, allocations: 4 kB / 0.9856 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2309, allocations: 0 / 0.9856 GB, free: 20.39 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007446/0.2316, allocations: 418.5 kB / 0.986 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-05/0.2317, allocations: 88.92 kB / 0.9861 GB, free: 19.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.802e-05/0.2318, allocations: 7.984 kB / 0.9861 GB, free: 19.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001762/0.2319, allocations: 11.95 kB / 0.9861 GB, free: 19.83 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.86e-05/0.232, allocations: 15.98 kB / 0.9861 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.2321, allocations: 8 kB / 0.9861 GB, free: 19.81 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000113/0.2322, allocations: 132.3 kB / 0.9863 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.2e-07/0.2322, allocations: 0 / 0.9863 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003817/0.2326, allocations: 32 kB / 0.9863 GB, free: 19.65 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.001105/0.2337, allocations: 0.9649 MB / 0.9872 GB, free: 18.65 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000642/0.2344, allocations: 369.4 kB / 0.9876 GB, free: 18.24 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.2344, allocations: 0 / 0.9876 GB, free: 18.24 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000313/0.2347, allocations: 215.2 kB / 0.9878 GB, free: 18 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000405/0.2351, allocations: 24.14 kB / 0.9878 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002101/0.2372, allocations: 0.9523 MB / 0.9887 GB, free: 16.97 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001636/0.2374, allocations: 0.7121 MB / 0.9894 GB, free: 16.23 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001086/0.2376, allocations: 24.47 kB / 0.9895 GB, free: 16.21 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.874e-05/0.2376, allocations: 35.42 kB / 0.9895 GB, free: 16.17 MB / 0.6198 GB Notification: Performance of SimCode: time 1.102e-06/0.2377, allocations: 0 / 0.9895 GB, free: 16.17 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03/0.2677, allocations: 3.361 MB / 0.9928 GB, free: 12.95 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001663/0.2679, allocations: 197.8 kB / 0.993 GB, free: 12.7 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.893/3.16, allocations: 0 / 0.993 GB, free: 12.7 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)