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.00147/0.00147, allocations: 104.7 kB / 16.52 MB, free: 6.27 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.001677/0.001677, allocations: 192.5 kB / 17.44 MB, free: 5.887 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.363/1.363, allocations: 222.9 MB / 241.1 MB, free: 13.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7311/0.7311, allocations: 115.3 MB / 406.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 59.91 kB / 493.6 MB, free: 0.8477 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3881/0.3897, allocations: 76.18 MB / 0.5564 GB, free: 35.59 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.003001/0.3928, allocations: 1.651 MB / 0.558 GB, free: 34.46 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.394, allocations: 0.6328 MB / 0.5586 GB, free: 34.04 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.504e-05/0.3941, allocations: 1.406 kB / 0.5586 GB, free: 34.04 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001932/0.3943, allocations: 18.83 kB / 0.5586 GB, free: 34.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.3946, allocations: 34.25 kB / 0.5587 GB, free: 34 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003888/0.3949, allocations: 104.6 kB / 0.5588 GB, free: 33.95 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000225/0.3952, allocations: 166.5 kB / 0.5589 GB, free: 33.88 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.3953, allocations: 25.12 kB / 0.5589 GB, free: 33.88 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.3955, allocations: 76.44 kB / 0.559 GB, free: 33.85 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001594/0.3957, allocations: 83.38 kB / 0.5591 GB, free: 33.81 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.557e-05/0.3957, allocations: 7.844 kB / 0.5591 GB, free: 33.81 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.283e-05/0.3958, allocations: 18.86 kB / 0.5591 GB, free: 33.81 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.3959, allocations: 25.56 kB / 0.5591 GB, free: 33.8 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.3961, allocations: 71.62 kB / 0.5592 GB, free: 33.76 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002435/0.3963, allocations: 116 kB / 0.5593 GB, free: 33.73 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.3963, allocations: 1.312 kB / 0.5593 GB, free: 33.73 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3963, allocations: 0 / 0.5593 GB, free: 33.73 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.3963, allocations: 1.5 kB / 0.5593 GB, free: 33.73 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.0007692/0.3971, allocations: 0.5495 MB / 0.5599 GB, free: 33.19 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.816e-05/0.3972, allocations: 15.12 kB / 0.5599 GB, free: 33.18 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.94e-05/0.3973, allocations: 20.53 kB / 0.5599 GB, free: 33.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003117/0.3976, allocations: 244.4 kB / 0.5601 GB, free: 32.94 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.3976, allocations: 10.66 kB / 0.5601 GB, free: 32.93 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.283e-05/0.3977, allocations: 15.53 kB / 0.5602 GB, free: 32.93 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.398, allocations: 111.7 kB / 0.5603 GB, free: 32.88 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.398, allocations: 0 / 0.5603 GB, free: 32.88 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.024e-05/0.398, allocations: 8.156 kB / 0.5603 GB, free: 32.88 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.398, allocations: 2.156 kB / 0.5603 GB, free: 32.88 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.3982, allocations: 73.78 kB / 0.5603 GB, free: 32.86 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005927/0.3988, allocations: 417.9 kB / 0.5607 GB, free: 32.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001895/0.399, allocations: 88.17 kB / 0.5608 GB, free: 32.49 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001476/0.3992, allocations: 77.3 kB / 0.5609 GB, free: 32.46 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.3992, allocations: 1.625 kB / 0.5609 GB, free: 32.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002453/0.3995, allocations: 177.5 kB / 0.5611 GB, free: 32.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.3995, allocations: 1.312 kB / 0.5611 GB, free: 32.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007127/0.4002, allocations: 353.8 kB / 0.5614 GB, free: 32.16 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.352e-05/0.4003, allocations: 168.3 kB / 0.5616 GB, free: 31.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.4004, allocations: 175.7 kB / 0.5617 GB, free: 31.85 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.4004, allocations: 29.64 kB / 0.5618 GB, free: 31.82 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.653e-05/0.4005, allocations: 112.8 kB / 0.5619 GB, free: 31.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.756e-05/0.4005, allocations: 25.67 kB / 0.5619 GB, free: 31.69 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.206e-05/0.4006, allocations: 39.77 kB / 0.5619 GB, free: 31.67 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.297e-05/0.4007, allocations: 331 kB / 0.5623 GB, free: 31.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.4008, allocations: 60.75 kB / 0.5623 GB, free: 31.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.401, allocations: 98.42 kB / 0.5624 GB, free: 31.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003112/0.4013, allocations: 315.1 kB / 0.5627 GB, free: 30.96 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4013, allocations: 0 / 0.5627 GB, free: 30.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005048/0.4018, allocations: 346.6 kB / 0.563 GB, free: 30.75 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.707e-05/0.4019, allocations: 116.4 kB / 0.5631 GB, free: 30.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.4019, allocations: 2.719 kB / 0.5631 GB, free: 30.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.4019, allocations: 8.531 kB / 0.5632 GB, free: 30.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.4021, allocations: 23.55 kB / 0.5632 GB, free: 30.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.4021, allocations: 4.156 kB / 0.5632 GB, free: 30.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.4022, allocations: 18.55 kB / 0.5632 GB, free: 30.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.4022, allocations: 9.531 kB / 0.5632 GB, free: 30.6 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.0001406/0.4024, allocations: 207.4 kB / 0.5634 GB, free: 30.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-05/0.4024, allocations: 19.2 kB / 0.5634 GB, free: 30.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.049e-05/0.4025, allocations: 16.42 kB / 0.5634 GB, free: 30.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.4025, allocations: 1.281 kB / 0.5634 GB, free: 30.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.4025, allocations: 3 kB / 0.5634 GB, free: 30.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.4025, allocations: 0.8906 kB / 0.5634 GB, free: 30.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006992/0.4032, allocations: 0.5803 MB / 0.564 GB, free: 29.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.4032, allocations: 0 / 0.564 GB, free: 29.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.772e-05/0.4033, allocations: 13.61 kB / 0.564 GB, free: 29.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.4033, allocations: 0 / 0.564 GB, free: 29.95 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.197e-05/0.4033, allocations: 11.58 kB / 0.564 GB, free: 29.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.4033, allocations: 1.453 kB / 0.564 GB, free: 29.95 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4033, allocations: 5.25 kB / 0.564 GB, free: 29.94 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005525/0.4039, allocations: 401.1 kB / 0.5644 GB, free: 29.69 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.924e-05/0.4039, allocations: 91.72 kB / 0.5645 GB, free: 29.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.147e-05/0.404, allocations: 5.438 kB / 0.5645 GB, free: 29.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.4041, allocations: 7.609 kB / 0.5645 GB, free: 29.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.4042, allocations: 11.39 kB / 0.5645 GB, free: 29.58 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.4042, allocations: 12.73 kB / 0.5645 GB, free: 29.58 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000106/0.4043, allocations: 128.2 kB / 0.5647 GB, free: 29.49 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4043, allocations: 1.562 kB / 0.5647 GB, free: 29.49 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003224/0.4047, allocations: 40.14 kB / 0.5647 GB, free: 29.48 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.0002565/0.4049, allocations: 137.1 kB / 0.5648 GB, free: 29.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005208/0.4054, allocations: 362.3 kB / 0.5652 GB, free: 29.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4055, allocations: 3.938 kB / 0.5652 GB, free: 29.08 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002336/0.4057, allocations: 205.1 kB / 0.5654 GB, free: 28.93 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.406, allocations: 19.84 kB / 0.5654 GB, free: 28.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006602/0.4067, allocations: 346.9 kB / 0.5657 GB, free: 28.68 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001875/0.4069, allocations: 0.7079 MB / 0.5664 GB, free: 27.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.504e-05/0.407, allocations: 14.5 kB / 0.5664 GB, free: 27.98 MB / 446.1 MB Notification: Performance of SimCode: time 7.31e-07/0.407, allocations: 1.062 kB / 0.5664 GB, free: 27.98 MB / 446.1 MB Notification: Performance of Templates: time 0.006236/0.4132, allocations: 2.152 MB / 0.5685 GB, free: 27.76 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)