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.001261/0.001262, allocations: 101.7 kB / 16.41 MB, free: 6.008 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.001254/0.001254, allocations: 189.8 kB / 17.34 MB, free: 5.629 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.288/1.288, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002749/0.002748, allocations: 294.4 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.003/1.003, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 95.86 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.471/0.4728, allocations: 86.98 MB / 0.767 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002752/0.4756, allocations: 1.608 MB / 0.7686 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009451/0.4766, allocations: 0.6175 MB / 0.7692 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.538e-05/0.4767, allocations: 0 / 0.7692 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.4768, allocations: 23.78 kB / 0.7692 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002236/0.4771, allocations: 43.75 kB / 0.7693 GB, free: 1.613 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003873/0.4775, allocations: 103.8 kB / 0.7694 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002489/0.4777, allocations: 199.6 kB / 0.7696 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.4779, allocations: 32.86 kB / 0.7696 GB, free: 1.285 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001577/0.478, allocations: 87.73 kB / 0.7697 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001544/0.4782, allocations: 87.66 kB / 0.7698 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 4.084e-05/0.4782, allocations: 16 kB / 0.7698 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.53e-05/0.4783, allocations: 24 kB / 0.7698 GB, free: 1.074 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.835e-05/0.4784, allocations: 31.91 kB / 0.7698 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 9.494e-05/0.4785, allocations: 67.72 kB / 0.7699 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.4788, allocations: 171.2 kB / 0.7701 GB, free: 0.8125 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.4788, allocations: 4 kB / 0.7701 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.356e-06/0.4788, allocations: 0 / 0.7701 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.887e-06/0.4788, allocations: 3.938 kB / 0.7701 GB, free: 0.8047 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.0007532/0.4795, allocations: 0.5433 MB / 0.7706 GB, free: 196 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.4796, allocations: 15.97 kB / 0.7706 GB, free: 180 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.363e-05/0.4797, allocations: 20.75 kB / 0.7706 GB, free: 160 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003591/0.48, allocations: 248.6 kB / 0.7709 GB, free: 15.88 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/0.4801, allocations: 8.375 kB / 0.7709 GB, free: 15.87 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.87e-05/0.4801, allocations: 12.38 kB / 0.7709 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002763/0.4804, allocations: 113.7 kB / 0.771 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.4804, allocations: 3.938 kB / 0.771 GB, free: 15.73 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.4804, allocations: 11.94 kB / 0.771 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.4804, allocations: 0 / 0.771 GB, free: 15.72 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001761/0.4806, allocations: 67.95 kB / 0.7711 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006512/0.4813, allocations: 416.6 kB / 0.7715 GB, free: 15.2 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001852/0.4815, allocations: 90.53 kB / 0.7716 GB, free: 15.1 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.4816, allocations: 80.75 kB / 0.7717 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.4817, allocations: 0 / 0.7717 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002599/0.4819, allocations: 174.7 kB / 0.7718 GB, free: 14.82 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.4819, allocations: 0 / 0.7718 GB, free: 14.82 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0006888/0.4826, allocations: 356.9 kB / 0.7722 GB, free: 14.46 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.4828, allocations: 170.2 kB / 0.7723 GB, free: 14.25 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.483, allocations: 171.7 kB / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.483, allocations: 33.7 kB / 0.7725 GB, free: 14.03 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.595e-05/0.4831, allocations: 108.4 kB / 0.7726 GB, free: 13.92 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.037e-05/0.4831, allocations: 27.64 kB / 0.7726 GB, free: 13.89 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.443e-05/0.4832, allocations: 41.64 kB / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.4833, allocations: 326.8 kB / 0.773 GB, free: 13.52 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001289/0.4835, allocations: 59.95 kB / 0.7731 GB, free: 13.46 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.4836, allocations: 98.83 kB / 0.7731 GB, free: 13.34 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003119/0.4839, allocations: 308.9 kB / 0.7734 GB, free: 12.97 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.484, allocations: 4 kB / 0.7734 GB, free: 12.97 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000486/0.4845, allocations: 344.1 kB / 0.7738 GB, free: 12.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.897e-05/0.4845, allocations: 118.8 kB / 0.7739 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.4846, allocations: 4 kB / 0.7739 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.4846, allocations: 0 / 0.7739 GB, free: 12.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.4847, allocations: 24.17 kB / 0.7739 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.4847, allocations: 8 kB / 0.7739 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.894e-05/0.4848, allocations: 15.92 kB / 0.7739 GB, free: 12.41 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.4848, allocations: 12 kB / 0.7739 GB, free: 12.4 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.0001503/0.485, allocations: 201.1 kB / 0.7741 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.258e-05/0.485, allocations: 16.09 kB / 0.7742 GB, free: 12.17 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.856e-05/0.4851, allocations: 25.38 kB / 0.7742 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.4851, allocations: 4 kB / 0.7742 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4851, allocations: 3.938 kB / 0.7742 GB, free: 12.13 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.4851, allocations: 4 kB / 0.7742 GB, free: 12.13 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006641/0.4858, allocations: 0.5836 MB / 0.7748 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.4858, allocations: 7.984 kB / 0.7748 GB, free: 11.47 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.168e-05/0.4859, allocations: 11.94 kB / 0.7748 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.4859, allocations: 0 / 0.7748 GB, free: 11.46 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.4859, allocations: 7.984 kB / 0.7748 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.4859, allocations: 0 / 0.7748 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.4859, allocations: 3.938 kB / 0.7748 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005529/0.4865, allocations: 402.7 kB / 0.7752 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.41e-05/0.4865, allocations: 88.86 kB / 0.7753 GB, free: 10.92 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.488e-05/0.4866, allocations: 4 kB / 0.7753 GB, free: 10.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.4867, allocations: 15.98 kB / 0.7753 GB, free: 10.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.4867, allocations: 7.938 kB / 0.7753 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.4868, allocations: 11.98 kB / 0.7753 GB, free: 10.88 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001002/0.4869, allocations: 132.3 kB / 0.7754 GB, free: 10.75 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4869, allocations: 0 / 0.7754 GB, free: 10.75 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002896/0.4872, allocations: 40 kB / 0.7755 GB, free: 10.71 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.0002432/0.4874, allocations: 122.7 kB / 0.7756 GB, free: 10.59 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004669/0.4879, allocations: 365.4 kB / 0.7759 GB, free: 10.18 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4879, allocations: 0 / 0.7759 GB, free: 10.18 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.4881, allocations: 202.8 kB / 0.7761 GB, free: 9.961 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.4884, allocations: 27.92 kB / 0.7761 GB, free: 9.934 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000598/0.489, allocations: 318.2 kB / 0.7765 GB, free: 9.594 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.4893, allocations: 0.7079 MB / 0.7771 GB, free: 8.859 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.889e-05/0.4894, allocations: 11.44 kB / 0.7772 GB, free: 8.848 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.4894, allocations: 0 / 0.7772 GB, free: 8.848 MB / 0.545 GB Notification: Performance of Templates: time 0.004032/0.4934, allocations: 2.19 MB / 0.7793 GB, free: 6.672 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)