Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001289/0.001289, allocations: 107.9 kB / 16.41 MB, free: 6.5 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.001197/0.001197, allocations: 185.6 kB / 17.34 MB, free: 5.762 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.275/1.275, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00215/0.00215, allocations: 291.7 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8914/0.8914, allocations: 169.2 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 91.86 kB / 0.6821 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4281/0.4299, allocations: 86.97 MB / 0.767 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002936/0.4329, allocations: 1.616 MB / 0.7686 GB, free: 2.312 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009537/0.4338, allocations: 0.6057 MB / 0.7692 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.539e-05/0.4339, allocations: 4 kB / 0.7692 GB, free: 1.699 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001512/0.4341, allocations: 23.8 kB / 0.7692 GB, free: 1.676 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002207/0.4343, allocations: 47.75 kB / 0.7693 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000394/0.4347, allocations: 111.8 kB / 0.7694 GB, free: 1.52 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002615/0.435, allocations: 195.6 kB / 0.7696 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.4351, allocations: 32.84 kB / 0.7696 GB, free: 1.297 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000164/0.4353, allocations: 87.8 kB / 0.7697 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.4354, allocations: 87.66 kB / 0.7698 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 4.278e-05/0.4355, allocations: 12 kB / 0.7698 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.449e-05/0.4356, allocations: 28 kB / 0.7698 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.006e-05/0.4356, allocations: 27.91 kB / 0.7698 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 9.495e-05/0.4358, allocations: 75.66 kB / 0.7699 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.436, allocations: 167.2 kB / 0.7701 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.436, allocations: 4 kB / 0.7701 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.262e-06/0.436, allocations: 3.938 kB / 0.7701 GB, free: 0.8164 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.436, allocations: 0 / 0.7701 GB, free: 0.8164 MB / 0.5294 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.0006541/0.4367, allocations: 0.5511 MB / 0.7706 GB, free: 200 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.4367, allocations: 8.031 kB / 0.7706 GB, free: 192 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.627e-05/0.4368, allocations: 24.69 kB / 0.7706 GB, free: 168 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003481/0.4371, allocations: 240.6 kB / 0.7709 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.4372, allocations: 16.38 kB / 0.7709 GB, free: 15.88 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.999e-05/0.4372, allocations: 8.375 kB / 0.7709 GB, free: 15.87 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002569/0.4375, allocations: 121.7 kB / 0.771 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.4375, allocations: 0 / 0.771 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.4375, allocations: 4 kB / 0.771 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.4375, allocations: 0 / 0.771 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/0.4377, allocations: 71.94 kB / 0.7711 GB, free: 15.67 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006112/0.4383, allocations: 416.6 kB / 0.7715 GB, free: 15.21 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001767/0.4385, allocations: 90.47 kB / 0.7716 GB, free: 15.11 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001447/0.4387, allocations: 72.81 kB / 0.7716 GB, free: 15.04 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.086e-05/0.4387, allocations: 7.984 kB / 0.7716 GB, free: 15.03 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000233/0.439, allocations: 178.8 kB / 0.7718 GB, free: 14.83 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.439, allocations: 4 kB / 0.7718 GB, free: 14.83 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0006816/0.4397, allocations: 352.8 kB / 0.7722 GB, free: 14.46 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.085e-05/0.4397, allocations: 158.2 kB / 0.7723 GB, free: 14.27 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.4399, allocations: 183.6 kB / 0.7725 GB, free: 14.08 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.177e-05/0.4399, allocations: 33.7 kB / 0.7725 GB, free: 14.04 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.676e-05/0.44, allocations: 108.4 kB / 0.7726 GB, free: 13.93 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.889e-05/0.44, allocations: 27.64 kB / 0.7726 GB, free: 13.9 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.901e-05/0.4401, allocations: 41.7 kB / 0.7727 GB, free: 13.85 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.885e-05/0.4402, allocations: 326.8 kB / 0.773 GB, free: 13.52 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001254/0.4404, allocations: 47.97 kB / 0.773 GB, free: 13.48 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.4405, allocations: 106.8 kB / 0.7731 GB, free: 13.35 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003073/0.4408, allocations: 313.2 kB / 0.7734 GB, free: 12.98 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4408, allocations: 0 / 0.7734 GB, free: 12.98 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005025/0.4414, allocations: 352.2 kB / 0.7738 GB, free: 12.61 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.712e-05/0.4414, allocations: 118.7 kB / 0.7739 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.4414, allocations: 0 / 0.7739 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.4415, allocations: 4 kB / 0.7739 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.4416, allocations: 19.98 kB / 0.7739 GB, free: 12.44 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.4416, allocations: 4 kB / 0.7739 GB, free: 12.44 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.905e-05/0.4417, allocations: 15.88 kB / 0.7739 GB, free: 12.42 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.106e-05/0.4417, allocations: 11.98 kB / 0.7739 GB, free: 12.41 MB / 0.545 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 0.0001515/0.4419, allocations: 210.5 kB / 0.7741 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.627e-05/0.4419, allocations: 19.8 kB / 0.7742 GB, free: 12.17 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.208e-05/0.442, allocations: 13.41 kB / 0.7742 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.442, allocations: 7.984 kB / 0.7742 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.442, allocations: 0 / 0.7742 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.442, allocations: 0 / 0.7742 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006539/0.4426, allocations: 0.5797 MB / 0.7748 GB, free: 11.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4427, allocations: 3.938 kB / 0.7748 GB, free: 11.49 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.241e-05/0.4427, allocations: 15.98 kB / 0.7748 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.4427, allocations: 4 kB / 0.7748 GB, free: 11.47 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.143e-05/0.4428, allocations: 15.97 kB / 0.7748 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4428, allocations: 0 / 0.7748 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.4428, allocations: 3.938 kB / 0.7748 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005113/0.4433, allocations: 394.7 kB / 0.7752 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.242e-05/0.4434, allocations: 96.86 kB / 0.7753 GB, free: 10.93 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.172e-05/0.4434, allocations: 4 kB / 0.7753 GB, free: 10.92 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.4435, allocations: 8 kB / 0.7753 GB, free: 10.91 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.4436, allocations: 15.92 kB / 0.7753 GB, free: 10.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.4436, allocations: 7.984 kB / 0.7753 GB, free: 10.89 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.443e-05/0.4437, allocations: 132.3 kB / 0.7754 GB, free: 10.76 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4437, allocations: 0 / 0.7754 GB, free: 10.76 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002863/0.444, allocations: 36 kB / 0.7755 GB, free: 10.73 MB / 0.545 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.0002138/0.4442, allocations: 135.8 kB / 0.7756 GB, free: 10.59 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004524/0.4447, allocations: 357.8 kB / 0.7759 GB, free: 10.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4447, allocations: 4.188 kB / 0.7759 GB, free: 10.19 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002222/0.4449, allocations: 206.7 kB / 0.7761 GB, free: 9.965 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.4452, allocations: 19.98 kB / 0.7761 GB, free: 9.945 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005549/0.4458, allocations: 306.2 kB / 0.7764 GB, free: 9.617 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.446, allocations: 0.7196 MB / 0.7771 GB, free: 8.871 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.911e-05/0.4461, allocations: 15.44 kB / 0.7772 GB, free: 8.855 MB / 0.545 GB Notification: Performance of SimCode: time 3.3e-07/0.4461, allocations: 0 / 0.7772 GB, free: 8.855 MB / 0.545 GB Notification: Performance of Templates: time 0.003939/0.45, allocations: 2.175 MB / 0.7793 GB, free: 6.691 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)