Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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: translateModel(IBPSA.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter") translateModel(IBPSA.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008309/0.0008307, allocations: 90.42 kB / 16.67 MB, free: 6.594 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.0009275/0.0009275, allocations: 182.4 kB / 17.58 MB, free: 6.188 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.312/1.312, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.747/0.747, allocations: 115.5 MB / 408.2 MB, free: 7.074 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003549/0.000355, allocations: 15.98 kB / 496.5 MB, free: 15.66 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.402/0.4024, allocations: 77.51 MB / 0.5606 GB, free: 36.28 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.001739/0.4042, allocations: 1.312 MB / 0.5619 GB, free: 35.33 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000892/0.4051, allocations: 0.6237 MB / 0.5625 GB, free: 34.9 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.888e-05/0.4051, allocations: 2.562 kB / 0.5625 GB, free: 34.9 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.4053, allocations: 15.2 kB / 0.5625 GB, free: 34.89 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.4055, allocations: 40.8 kB / 0.5625 GB, free: 34.87 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003366/0.4058, allocations: 101.1 kB / 0.5626 GB, free: 34.81 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001805/0.406, allocations: 163.7 kB / 0.5628 GB, free: 34.75 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.4062, allocations: 24.8 kB / 0.5628 GB, free: 34.74 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.4063, allocations: 73.91 kB / 0.5629 GB, free: 34.71 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.4065, allocations: 74.97 kB / 0.5629 GB, free: 34.69 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.195e-05/0.4065, allocations: 6.406 kB / 0.563 GB, free: 34.69 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.421e-05/0.4066, allocations: 22.86 kB / 0.563 GB, free: 34.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.647e-05/0.4066, allocations: 27.61 kB / 0.563 GB, free: 34.67 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.308e-05/0.4067, allocations: 89.03 kB / 0.5631 GB, free: 34.61 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001971/0.4069, allocations: 117.3 kB / 0.5632 GB, free: 34.57 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.407, allocations: 0 / 0.5632 GB, free: 34.57 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.407, allocations: 1.219 kB / 0.5632 GB, free: 34.57 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.407, allocations: 0 / 0.5632 GB, free: 34.57 MB / 446.1 MB 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.0005711/0.4076, allocations: 0.522 MB / 0.5637 GB, free: 34.05 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.4076, allocations: 13.06 kB / 0.5637 GB, free: 34.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.444e-05/0.4077, allocations: 20.44 kB / 0.5637 GB, free: 34.04 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.4079, allocations: 242.2 kB / 0.564 GB, free: 33.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.4079, allocations: 12.58 kB / 0.564 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.375e-05/0.408, allocations: 11.66 kB / 0.564 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002729/0.4082, allocations: 125.3 kB / 0.5641 GB, free: 33.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.4083, allocations: 0 / 0.5641 GB, free: 33.73 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.4083, allocations: 8 kB / 0.5641 GB, free: 33.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.4083, allocations: 0 / 0.5641 GB, free: 33.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000208/0.4085, allocations: 83.62 kB / 0.5642 GB, free: 33.71 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005821/0.4091, allocations: 422.1 kB / 0.5646 GB, free: 33.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001946/0.4093, allocations: 94.8 kB / 0.5647 GB, free: 33.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.4095, allocations: 81.23 kB / 0.5648 GB, free: 33.31 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.4095, allocations: 2.797 kB / 0.5648 GB, free: 33.31 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002801/0.4098, allocations: 186.6 kB / 0.565 GB, free: 33.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 1.462e-06/0.4098, allocations: 0 / 0.565 GB, free: 33.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007272/0.4105, allocations: 361.7 kB / 0.5653 GB, free: 33.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.4106, allocations: 168.1 kB / 0.5655 GB, free: 32.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.4108, allocations: 172.3 kB / 0.5656 GB, free: 32.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.036e-05/0.4108, allocations: 34.33 kB / 0.5657 GB, free: 32.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.245e-05/0.4109, allocations: 107.8 kB / 0.5658 GB, free: 32.56 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.096e-05/0.4109, allocations: 35.66 kB / 0.5658 GB, free: 32.54 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.4109, allocations: 22.12 kB / 0.5658 GB, free: 32.52 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.876e-05/0.411, allocations: 328.7 kB / 0.5661 GB, free: 32.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.4112, allocations: 55.22 kB / 0.5662 GB, free: 32.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.4113, allocations: 112.5 kB / 0.5663 GB, free: 32.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000295/0.4116, allocations: 316.7 kB / 0.5666 GB, free: 31.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.4116, allocations: 1.562 kB / 0.5666 GB, free: 31.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.00051/0.4122, allocations: 350.6 kB / 0.5669 GB, free: 31.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.367e-05/0.4122, allocations: 121.7 kB / 0.567 GB, free: 31.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.4122, allocations: 6.109 kB / 0.567 GB, free: 31.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.4123, allocations: 2.594 kB / 0.567 GB, free: 31.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.4124, allocations: 22.45 kB / 0.5671 GB, free: 31.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.4124, allocations: 4.562 kB / 0.5671 GB, free: 31.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.4125, allocations: 21.28 kB / 0.5671 GB, free: 31.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.4125, allocations: 12.48 kB / 0.5671 GB, free: 31.46 MB / 446.1 MB 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.0001271/0.4127, allocations: 195.8 kB / 0.5673 GB, free: 31.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.025e-05/0.4127, allocations: 16.94 kB / 0.5673 GB, free: 31.26 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.712e-05/0.4127, allocations: 19.97 kB / 0.5673 GB, free: 31.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.4128, allocations: 1.156 kB / 0.5673 GB, free: 31.25 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4128, allocations: 5.531 kB / 0.5673 GB, free: 31.25 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.4128, allocations: 4.688 kB / 0.5673 GB, free: 31.24 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006759/0.4135, allocations: 0.5869 MB / 0.5679 GB, free: 30.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.4135, allocations: 1.859 kB / 0.5679 GB, free: 30.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.479e-05/0.4135, allocations: 17.62 kB / 0.5679 GB, free: 30.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.4135, allocations: 0.75 kB / 0.5679 GB, free: 30.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.4136, allocations: 6.266 kB / 0.5679 GB, free: 30.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.4136, allocations: 5.047 kB / 0.5679 GB, free: 30.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4136, allocations: 3.938 kB / 0.5679 GB, free: 30.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005466/0.4141, allocations: 413.2 kB / 0.5683 GB, free: 30.54 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.765e-05/0.4142, allocations: 89.34 kB / 0.5684 GB, free: 30.44 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.571e-05/0.4142, allocations: 9.438 kB / 0.5684 GB, free: 30.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.4144, allocations: 10.52 kB / 0.5684 GB, free: 30.44 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.818e-05/0.4144, allocations: 16.31 kB / 0.5685 GB, free: 30.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.099e-05/0.4145, allocations: 11.84 kB / 0.5685 GB, free: 30.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001/0.4146, allocations: 128.8 kB / 0.5686 GB, free: 30.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4146, allocations: 1.188 kB / 0.5686 GB, free: 30.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003048/0.4149, allocations: 39.02 kB / 0.5686 GB, free: 30.33 MB / 446.1 MB 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.0002288/0.4151, allocations: 126.9 kB / 0.5688 GB, free: 30.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004643/0.4156, allocations: 374.8 kB / 0.5691 GB, free: 29.94 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.4156, allocations: 1.25 kB / 0.5691 GB, free: 29.94 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000229/0.4158, allocations: 210.5 kB / 0.5693 GB, free: 29.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.4162, allocations: 25.52 kB / 0.5693 GB, free: 29.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006035/0.4168, allocations: 360.3 kB / 0.5697 GB, free: 29.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001673/0.417, allocations: 0.7072 MB / 0.5704 GB, free: 28.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.949e-05/0.417, allocations: 15.19 kB / 0.5704 GB, free: 28.82 MB / 446.1 MB Notification: Performance of SimCode: time 3.5e-07/0.417, allocations: 1.062 kB / 0.5704 GB, free: 28.82 MB / 446.1 MB Notification: Performance of Templates: time 0.004681/0.4217, allocations: 2.127 MB / 0.5725 GB, free: 28.61 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.sim & ./IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)