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: "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 105.8 kB / 16.27 MB, free: 5.98 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.00134/0.00134, allocations: 189.5 kB / 17.2 MB, free: 5.609 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 / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7423/0.7423, allocations: 122.9 MB / 413.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.91 kB / 0.4912 GB, free: 7.352 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2763, allocations: 77.92 MB / 0.5673 GB, free: 32.57 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.002681/0.2791, allocations: 1.594 MB / 0.5688 GB, free: 31.47 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008429/0.2799, allocations: 0.6133 MB / 0.5694 GB, free: 31.05 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.482e-05/0.28, allocations: 3.781 kB / 0.5694 GB, free: 31.05 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.2802, allocations: 20.02 kB / 0.5695 GB, free: 31.03 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001753/0.2804, allocations: 43.23 kB / 0.5695 GB, free: 31 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003917/0.2808, allocations: 112.1 kB / 0.5696 GB, free: 30.95 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.281, allocations: 197.7 kB / 0.5698 GB, free: 30.86 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.2811, allocations: 27.3 kB / 0.5698 GB, free: 30.85 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.2812, allocations: 81.69 kB / 0.5699 GB, free: 30.82 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001212/0.2814, allocations: 81 kB / 0.57 GB, free: 30.79 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.05e-05/0.2814, allocations: 13.56 kB / 0.57 GB, free: 30.79 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.168e-05/0.2815, allocations: 34.66 kB / 0.57 GB, free: 30.78 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.648e-05/0.2816, allocations: 33.86 kB / 0.5701 GB, free: 30.76 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.786e-05/0.2817, allocations: 72.77 kB / 0.5701 GB, free: 30.72 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002052/0.2819, allocations: 166.3 kB / 0.5703 GB, free: 30.66 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.2819, allocations: 0.75 kB / 0.5703 GB, free: 30.66 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2819, allocations: 1.562 kB / 0.5703 GB, free: 30.66 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.2819, allocations: 4.938 kB / 0.5703 GB, free: 30.65 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.0005208/0.2824, allocations: 0.5583 MB / 0.5708 GB, free: 30.11 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.2825, allocations: 9.344 kB / 0.5709 GB, free: 30.11 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.07e-05/0.2825, allocations: 40.77 kB / 0.5709 GB, free: 30.06 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.337e-05/0.2826, allocations: 17.08 kB / 0.5709 GB, free: 30.06 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002311/0.2828, allocations: 235.3 kB / 0.5711 GB, free: 29.83 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.2829, allocations: 9.344 kB / 0.5711 GB, free: 29.83 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.193e-05/0.2829, allocations: 14.84 kB / 0.5712 GB, free: 29.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002498/0.2831, allocations: 118.6 kB / 0.5713 GB, free: 29.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.2832, allocations: 0 / 0.5713 GB, free: 29.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.2832, allocations: 3.875 kB / 0.5713 GB, free: 29.77 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-06/0.2832, allocations: 1.625 kB / 0.5713 GB, free: 29.77 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001958/0.2834, allocations: 69.25 kB / 0.5713 GB, free: 29.75 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005466/0.2839, allocations: 418.1 kB / 0.5717 GB, free: 29.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000181/0.2841, allocations: 82.97 kB / 0.5718 GB, free: 29.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.2843, allocations: 81.69 kB / 0.5719 GB, free: 29.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/0.2843, allocations: 1.438 kB / 0.5719 GB, free: 29.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002312/0.2846, allocations: 183.7 kB / 0.5721 GB, free: 29.22 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 1.542e-06/0.2846, allocations: 0 / 0.5721 GB, free: 29.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006826/0.2853, allocations: 353.1 kB / 0.5724 GB, free: 29.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.2853, allocations: 170.7 kB / 0.5726 GB, free: 28.86 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.2855, allocations: 186.5 kB / 0.5727 GB, free: 28.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.2855, allocations: 28.52 kB / 0.5728 GB, free: 28.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.846e-05/0.2856, allocations: 109.6 kB / 0.5729 GB, free: 28.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.25e-05/0.2856, allocations: 29.81 kB / 0.5729 GB, free: 28.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.459e-05/0.2856, allocations: 39.09 kB / 0.5729 GB, free: 28.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.517e-05/0.2857, allocations: 331.2 kB / 0.5733 GB, free: 28.22 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.2858, allocations: 51.92 kB / 0.5733 GB, free: 28.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.286, allocations: 106.8 kB / 0.5734 GB, free: 28.13 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/0.2863, allocations: 311.9 kB / 0.5737 GB, free: 27.84 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2863, allocations: 5.094 kB / 0.5737 GB, free: 27.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004898/0.2868, allocations: 352.3 kB / 0.5741 GB, free: 27.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.2868, allocations: 115 kB / 0.5742 GB, free: 27.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.2868, allocations: 2.344 kB / 0.5742 GB, free: 27.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.2869, allocations: 2.156 kB / 0.5742 GB, free: 27.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001065/0.287, allocations: 16.75 kB / 0.5742 GB, free: 27.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.287, allocations: 3.766 kB / 0.5742 GB, free: 27.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.2871, allocations: 23.7 kB / 0.5742 GB, free: 27.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.2871, allocations: 8.562 kB / 0.5742 GB, free: 27.48 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.0001073/0.2872, allocations: 205.4 kB / 0.5744 GB, free: 27.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.355e-05/0.2873, allocations: 13.66 kB / 0.5744 GB, free: 27.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.042e-05/0.2873, allocations: 16.36 kB / 0.5744 GB, free: 27.28 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2873, allocations: 1.469 kB / 0.5744 GB, free: 27.28 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2873, allocations: 1.562 kB / 0.5744 GB, free: 27.28 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.2873, allocations: 0.75 kB / 0.5744 GB, free: 27.28 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006273/0.288, allocations: 0.5852 MB / 0.575 GB, free: 26.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.288, allocations: 0 / 0.575 GB, free: 26.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.822e-05/0.2881, allocations: 13.98 kB / 0.575 GB, free: 26.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.2881, allocations: 0.9375 kB / 0.575 GB, free: 26.84 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.072e-05/0.2881, allocations: 11.53 kB / 0.575 GB, free: 26.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2881, allocations: 0 / 0.575 GB, free: 26.83 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2881, allocations: 4.922 kB / 0.575 GB, free: 26.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005023/0.2886, allocations: 405.9 kB / 0.5754 GB, free: 26.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.361e-05/0.2886, allocations: 88.72 kB / 0.5755 GB, free: 26.47 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.689e-05/0.2887, allocations: 6.844 kB / 0.5755 GB, free: 26.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.2888, allocations: 7.672 kB / 0.5755 GB, free: 26.47 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.398e-05/0.2889, allocations: 17.77 kB / 0.5755 GB, free: 26.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.2889, allocations: 9.141 kB / 0.5756 GB, free: 26.46 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.627e-05/0.289, allocations: 124.5 kB / 0.5757 GB, free: 26.37 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.289, allocations: 2.031 kB / 0.5757 GB, free: 26.37 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003074/0.2893, allocations: 38.42 kB / 0.5757 GB, free: 26.36 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.0007356/0.29, allocations: 0.9551 MB / 0.5766 GB, free: 25.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004506/0.2905, allocations: 370.2 kB / 0.577 GB, free: 25.28 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2905, allocations: 0 / 0.577 GB, free: 25.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002178/0.2907, allocations: 209.2 kB / 0.5772 GB, free: 25.12 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.2911, allocations: 30.7 kB / 0.5772 GB, free: 25.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.2933, allocations: 2.097 MB / 0.5793 GB, free: 23.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001381/0.2934, allocations: 0.715 MB / 0.58 GB, free: 22.76 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.272e-05/0.2935, allocations: 20.84 kB / 0.58 GB, free: 22.76 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.877e-05/0.2936, allocations: 38.03 kB / 0.58 GB, free: 22.73 MB / 446.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2936, allocations: 1.531 kB / 0.58 GB, free: 22.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.312/0.6056, allocations: 3.583 MB / 0.5835 GB, free: 21.63 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.579/9.185, allocations: 6.703 kB / 0.5835 GB, free: 21.63 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)