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.001378/0.001378, allocations: 102.9 kB / 16.27 MB, free: 6.012 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.001132/0.001132, allocations: 187.8 kB / 17.19 MB, free: 5.652 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.446/1.446, allocations: 222.9 MB / 240.9 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7871/0.7871, allocations: 122.9 MB / 413.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 63.91 kB / 0.4911 GB, free: 7.398 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3693, allocations: 77.92 MB / 0.5672 GB, free: 32.55 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.003249/0.3726, allocations: 1.588 MB / 0.5688 GB, free: 31.46 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009116/0.3735, allocations: 0.6135 MB / 0.5694 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.793e-05/0.3736, allocations: 6.5 kB / 0.5694 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.3738, allocations: 20.42 kB / 0.5694 GB, free: 31.02 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001864/0.374, allocations: 53.36 kB / 0.5694 GB, free: 30.98 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003734/0.3744, allocations: 109.7 kB / 0.5696 GB, free: 30.93 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002243/0.3746, allocations: 195.8 kB / 0.5697 GB, free: 30.84 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.3747, allocations: 29.84 kB / 0.5698 GB, free: 30.83 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.3749, allocations: 82.92 kB / 0.5698 GB, free: 30.8 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.375, allocations: 89.64 kB / 0.5699 GB, free: 30.76 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.256e-05/0.3751, allocations: 13.03 kB / 0.5699 GB, free: 30.76 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.957e-05/0.3752, allocations: 26.64 kB / 0.57 GB, free: 30.76 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.552e-05/0.3753, allocations: 36.58 kB / 0.57 GB, free: 30.74 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.615e-05/0.3754, allocations: 71.58 kB / 0.5701 GB, free: 30.7 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002354/0.3756, allocations: 166.8 kB / 0.5702 GB, free: 30.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3756, allocations: 0 / 0.5702 GB, free: 30.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3756, allocations: 0 / 0.5702 GB, free: 30.64 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.3756, allocations: 1.125 kB / 0.5702 GB, free: 30.64 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.0005905/0.3762, allocations: 0.5532 MB / 0.5708 GB, free: 30.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.3763, allocations: 11.06 kB / 0.5708 GB, free: 30.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.494e-05/0.3764, allocations: 16.72 kB / 0.5708 GB, free: 30.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002442/0.3766, allocations: 239.7 kB / 0.571 GB, free: 29.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.3766, allocations: 10.25 kB / 0.571 GB, free: 29.85 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.997e-05/0.3767, allocations: 11.72 kB / 0.5711 GB, free: 29.85 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002756/0.377, allocations: 120.7 kB / 0.5712 GB, free: 29.79 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.377, allocations: 1.188 kB / 0.5712 GB, free: 29.79 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.377, allocations: 3.188 kB / 0.5712 GB, free: 29.79 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.377, allocations: 0.9688 kB / 0.5712 GB, free: 29.79 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.3772, allocations: 71.3 kB / 0.5712 GB, free: 29.78 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006007/0.3778, allocations: 411.6 kB / 0.5716 GB, free: 29.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002004/0.378, allocations: 91.58 kB / 0.5717 GB, free: 29.41 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001696/0.3782, allocations: 77.25 kB / 0.5718 GB, free: 29.38 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.3782, allocations: 3.297 kB / 0.5718 GB, free: 29.38 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002515/0.3785, allocations: 182.8 kB / 0.572 GB, free: 29.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.3785, allocations: 1.188 kB / 0.572 GB, free: 29.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007491/0.3793, allocations: 351.4 kB / 0.5723 GB, free: 29.08 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.354e-05/0.3793, allocations: 171.9 kB / 0.5725 GB, free: 28.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.3795, allocations: 180.3 kB / 0.5726 GB, free: 28.76 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.075e-05/0.3795, allocations: 34.8 kB / 0.5727 GB, free: 28.72 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.365e-05/0.3796, allocations: 107.4 kB / 0.5728 GB, free: 28.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.735e-05/0.3796, allocations: 26.28 kB / 0.5728 GB, free: 28.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.083e-05/0.3797, allocations: 40.27 kB / 0.5728 GB, free: 28.58 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.282e-05/0.3798, allocations: 330.1 kB / 0.5732 GB, free: 28.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.3799, allocations: 56.92 kB / 0.5732 GB, free: 28.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.3801, allocations: 103.8 kB / 0.5733 GB, free: 28.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002854/0.3804, allocations: 313.2 kB / 0.5736 GB, free: 27.87 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3804, allocations: 0 / 0.5736 GB, free: 27.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005044/0.3809, allocations: 347.9 kB / 0.5739 GB, free: 27.66 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.643e-05/0.381, allocations: 122.2 kB / 0.5741 GB, free: 27.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.381, allocations: 5.656 kB / 0.5741 GB, free: 27.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.381, allocations: 2.219 kB / 0.5741 GB, free: 27.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.3811, allocations: 17.84 kB / 0.5741 GB, free: 27.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.3811, allocations: 3.594 kB / 0.5741 GB, free: 27.53 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.998e-05/0.3812, allocations: 16.25 kB / 0.5741 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/0.3813, allocations: 17.97 kB / 0.5741 GB, free: 27.51 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.000122/0.3814, allocations: 193.5 kB / 0.5743 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.3814, allocations: 17.55 kB / 0.5743 GB, free: 27.32 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.513e-05/0.3815, allocations: 18.91 kB / 0.5743 GB, free: 27.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.3815, allocations: 4.406 kB / 0.5743 GB, free: 27.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3815, allocations: 0 / 0.5743 GB, free: 27.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3815, allocations: 0.7812 kB / 0.5743 GB, free: 27.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006763/0.3822, allocations: 0.5889 MB / 0.5749 GB, free: 26.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3822, allocations: 0 / 0.5749 GB, free: 26.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.57e-05/0.3823, allocations: 11.92 kB / 0.5749 GB, free: 26.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3823, allocations: 1.875 kB / 0.5749 GB, free: 26.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.3823, allocations: 11.05 kB / 0.5749 GB, free: 26.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.3823, allocations: 2.125 kB / 0.5749 GB, free: 26.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3823, allocations: 3.938 kB / 0.5749 GB, free: 26.85 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005411/0.3829, allocations: 404.8 kB / 0.5753 GB, free: 26.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.787e-05/0.3829, allocations: 89.27 kB / 0.5754 GB, free: 26.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.08e-05/0.383, allocations: 4.766 kB / 0.5754 GB, free: 26.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.3831, allocations: 10.53 kB / 0.5754 GB, free: 26.49 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.325e-05/0.3832, allocations: 10.7 kB / 0.5754 GB, free: 26.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.543e-05/0.3832, allocations: 7.016 kB / 0.5754 GB, free: 26.49 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.627e-05/0.3833, allocations: 133.9 kB / 0.5756 GB, free: 26.39 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3833, allocations: 0.625 kB / 0.5756 GB, free: 26.39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003115/0.3836, allocations: 41.02 kB / 0.5756 GB, free: 26.39 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.0002351/0.3839, allocations: 120.7 kB / 0.5757 GB, free: 26.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004729/0.3843, allocations: 366.8 kB / 0.5761 GB, free: 26 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3844, allocations: 3.938 kB / 0.5761 GB, free: 26 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000222/0.3846, allocations: 210.4 kB / 0.5763 GB, free: 25.84 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.3849, allocations: 27.7 kB / 0.5763 GB, free: 25.83 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006496/0.3856, allocations: 287.2 kB / 0.5766 GB, free: 25.65 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001857/0.3858, allocations: 0.7087 MB / 0.5773 GB, free: 24.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.696e-05/0.3858, allocations: 19.3 kB / 0.5773 GB, free: 24.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.439e-05/0.3859, allocations: 15.19 kB / 0.5773 GB, free: 24.95 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3859, allocations: 0 / 0.5773 GB, free: 24.95 MB / 446.1 MB Notification: Performance of Templates: time 0.006129/0.392, allocations: 2.078 MB / 0.5793 GB, free: 24.7 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)