Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.984/1.984, allocations: 391.2 MB / 407 MB, free: 10.84 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 197.5 kB / 499.1 MB, free: 4.629 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 222.9 MB / 0.7948 GB, free: 15.82 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 98 kB / 0.9329 GB, free: 7.09 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.00107/0.00107, allocations: 55.67 kB / 1.081 GB, free: 218.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.2129, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002466/0.2154, allocations: 1.659 MB / 1.22 GB, free: 115.6 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0007709/0.2162, allocations: 0.6361 MB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.567e-05/0.2163, allocations: 0 / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0001344/0.2164, allocations: 15.92 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0001547/0.2166, allocations: 43.77 kB / 1.22 GB, free: 114.9 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003724/0.217, allocations: 99.89 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0001254/0.2171, allocations: 159.6 kB / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 9.73e-05/0.2172, allocations: 29.08 kB / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.2173, allocations: 75.77 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 9.568e-05/0.2175, allocations: 87.66 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 3.03e-05/0.2175, allocations: 8 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 5.564e-05/0.2175, allocations: 20 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 6.557e-05/0.2176, allocations: 27.91 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 6.765e-05/0.2177, allocations: 71.64 kB / 1.221 GB, free: 114.3 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001537/0.2179, allocations: 153.7 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2179, allocations: 0 / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd: time 7.11e-07/0.2179, allocations: 0 / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.2179, allocations: 0 / 1.221 GB, free: 114.2 MB / 0.823 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.0004925/0.2184, allocations: 0.5641 MB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 2.882e-05/0.2184, allocations: 11.98 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.946e-05/0.2185, allocations: 16.84 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000207/0.2187, allocations: 241.6 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.2187, allocations: 12.38 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.2187, allocations: 12.38 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/0.2189, allocations: 113.7 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.219, allocations: 3.984 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.219, allocations: 4 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.219, allocations: 4 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001572/0.2191, allocations: 71.89 kB / 1.222 GB, free: 113 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004694/0.2196, allocations: 416.6 kB / 1.223 GB, free: 112.5 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.2198, allocations: 94.56 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.2199, allocations: 68.83 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.2199, allocations: 3.984 kB / 1.223 GB, free: 112.4 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000189/0.2201, allocations: 178.7 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of pre-optimization done (n=10): time 1.482e-06/0.2201, allocations: 0 / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of matching and sorting (n=10): time 0.0005354/0.2207, allocations: 360.8 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/0.2207, allocations: 162.2 kB / 1.223 GB, free: 111.6 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001122/0.2208, allocations: 183.9 kB / 1.224 GB, free: 111.4 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.2209, allocations: 29.7 kB / 1.224 GB, free: 111.4 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.831e-05/0.2209, allocations: 108.4 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.851e-05/0.2209, allocations: 27.64 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.304e-05/0.221, allocations: 41.7 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 4.014e-05/0.221, allocations: 334.8 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.2212, allocations: 47.97 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.2213, allocations: 105.8 kB / 1.224 GB, free: 110.7 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002168/0.2215, allocations: 313 kB / 1.224 GB, free: 110.3 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2215, allocations: 0 / 1.224 GB, free: 110.3 MB / 0.823 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003776/0.2219, allocations: 352 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 3.731e-05/0.2219, allocations: 116 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.2219, allocations: 4 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.222, allocations: 8.25 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.204e-05/0.2221, allocations: 23.92 kB / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.2221, allocations: 0 / 1.225 GB, free: 109.8 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.493e-05/0.2222, allocations: 20.2 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.2222, allocations: 8 kB / 1.225 GB, free: 109.7 MB / 0.823 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 8.828e-05/0.2223, allocations: 193.8 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.667e-05/0.2223, allocations: 27.73 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.758e-05/0.2223, allocations: 17.39 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2224, allocations: 7.938 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2224, allocations: 4 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2224, allocations: 0 / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004873/0.2229, allocations: 0.5798 MB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2229, allocations: 3.938 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.531e-05/0.2229, allocations: 11.98 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.2229, allocations: 0 / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.223, allocations: 15.92 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.223, allocations: 8 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.223, allocations: 3.938 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006076/0.2236, allocations: 1.02 MB / 1.227 GB, free: 107.7 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 2.229e-05/0.2236, allocations: 88.95 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.735e-05/0.2237, allocations: 11.98 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.843e-05/0.2238, allocations: 8 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/0.2238, allocations: 7.984 kB / 1.227 GB, free: 107.6 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.2238, allocations: 11.98 kB / 1.227 GB, free: 107.5 MB / 0.823 GB Notification: Performance of sorting global known variables: time 6.024e-05/0.2239, allocations: 127.2 kB / 1.227 GB, free: 107.4 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2239, allocations: 4 kB / 1.227 GB, free: 107.4 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003479/0.2242, allocations: 32 kB / 1.227 GB, free: 107.4 MB / 0.823 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.0001605/0.2244, allocations: 131.9 kB / 1.227 GB, free: 107.2 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0003312/0.2247, allocations: 357.5 kB / 1.228 GB, free: 106.9 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2248, allocations: 0 / 1.228 GB, free: 106.9 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001699/0.2249, allocations: 219.2 kB / 1.228 GB, free: 106.6 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.2252, allocations: 21.14 kB / 1.228 GB, free: 106.6 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000465/0.2257, allocations: 448.5 kB / 1.228 GB, free: 106.1 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001028/0.2258, allocations: 0.7121 MB / 1.229 GB, free: 105.4 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 5.373e-05/0.2259, allocations: 20.53 kB / 1.229 GB, free: 105.4 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.516e-05/0.2259, allocations: 11.44 kB / 1.229 GB, free: 105.3 MB / 0.823 GB Notification: Performance of SimCode: time 2.2e-07/0.2259, allocations: 4 kB / 1.229 GB, free: 105.3 MB / 0.823 GB Notification: Performance of Templates: time 0.003835/0.2297, allocations: 2.071 MB / 1.231 GB, free: 103.3 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)