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.00125/0.00125, allocations: 104.9 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.001295/0.001295, allocations: 186.5 kB / 17.19 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.311/1.311, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7266/0.7266, allocations: 122.8 MB / 413.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 59.91 kB / 0.4912 GB, free: 7.367 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2878, allocations: 77.92 MB / 0.5673 GB, free: 32.88 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.002443/0.2903, allocations: 1.598 MB / 0.5688 GB, free: 31.78 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000739/0.2911, allocations: 0.6158 MB / 0.5694 GB, free: 31.36 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.307e-05/0.2911, allocations: 1.219 kB / 0.5694 GB, free: 31.36 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.2913, allocations: 21.27 kB / 0.5695 GB, free: 31.34 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001601/0.2915, allocations: 42.78 kB / 0.5695 GB, free: 31.31 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003434/0.2918, allocations: 112.5 kB / 0.5696 GB, free: 31.25 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001926/0.292, allocations: 193.1 kB / 0.5698 GB, free: 31.17 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.2921, allocations: 29.86 kB / 0.5698 GB, free: 31.16 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.2922, allocations: 78.39 kB / 0.5699 GB, free: 31.13 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.2924, allocations: 86.12 kB / 0.57 GB, free: 31.1 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.841e-05/0.2924, allocations: 17.92 kB / 0.57 GB, free: 31.09 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.697e-05/0.2925, allocations: 30.3 kB / 0.57 GB, free: 31.09 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.231e-05/0.2926, allocations: 33.22 kB / 0.5701 GB, free: 31.07 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.089e-05/0.2926, allocations: 73.44 kB / 0.5701 GB, free: 31.03 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000192/0.2928, allocations: 161.4 kB / 0.5703 GB, free: 30.97 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2929, allocations: 5.188 kB / 0.5703 GB, free: 30.96 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2929, allocations: 2.031 kB / 0.5703 GB, free: 30.96 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.2929, allocations: 0 / 0.5703 GB, free: 30.96 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.0004961/0.2934, allocations: 0.5626 MB / 0.5708 GB, free: 30.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.2934, allocations: 9.906 kB / 0.5709 GB, free: 30.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.031e-05/0.2935, allocations: 40.97 kB / 0.5709 GB, free: 30.37 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.004e-05/0.2935, allocations: 15.47 kB / 0.5709 GB, free: 30.37 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002177/0.2937, allocations: 235.5 kB / 0.5711 GB, free: 30.14 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.2938, allocations: 11.86 kB / 0.5711 GB, free: 30.13 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.2938, allocations: 15.62 kB / 0.5712 GB, free: 30.13 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.294, allocations: 115.5 kB / 0.5713 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.2941, allocations: 5.875 kB / 0.5713 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.2941, allocations: 7.906 kB / 0.5713 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.2941, allocations: 0 / 0.5713 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/0.2943, allocations: 64.53 kB / 0.5713 GB, free: 30.05 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005239/0.2948, allocations: 422.3 kB / 0.5717 GB, free: 29.73 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000174/0.295, allocations: 83.31 kB / 0.5718 GB, free: 29.69 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.2951, allocations: 77.33 kB / 0.5719 GB, free: 29.66 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.2952, allocations: 2.406 kB / 0.5719 GB, free: 29.66 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002289/0.2954, allocations: 188.5 kB / 0.5721 GB, free: 29.52 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 1.352e-06/0.2954, allocations: 0 / 0.5721 GB, free: 29.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006385/0.2961, allocations: 346.1 kB / 0.5724 GB, free: 29.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.2961, allocations: 172.4 kB / 0.5726 GB, free: 29.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.2962, allocations: 181.3 kB / 0.5727 GB, free: 29.04 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.2963, allocations: 32.11 kB / 0.5728 GB, free: 29 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.892e-05/0.2963, allocations: 111.8 kB / 0.5729 GB, free: 28.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.176e-05/0.2964, allocations: 25.53 kB / 0.5729 GB, free: 28.88 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.325e-05/0.2964, allocations: 43.8 kB / 0.573 GB, free: 28.85 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.393e-05/0.2965, allocations: 330.4 kB / 0.5733 GB, free: 28.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.2966, allocations: 52.64 kB / 0.5733 GB, free: 28.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.2968, allocations: 100.8 kB / 0.5734 GB, free: 28.44 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.297, allocations: 315.2 kB / 0.5737 GB, free: 28.15 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.297, allocations: 1.219 kB / 0.5737 GB, free: 28.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004552/0.2975, allocations: 349.4 kB / 0.574 GB, free: 27.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.459e-05/0.2976, allocations: 116.2 kB / 0.5742 GB, free: 27.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2976, allocations: 3.219 kB / 0.5742 GB, free: 27.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.2976, allocations: 2.562 kB / 0.5742 GB, free: 27.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.2977, allocations: 18.36 kB / 0.5742 GB, free: 27.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.2977, allocations: 3.312 kB / 0.5742 GB, free: 27.81 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.685e-05/0.2978, allocations: 22.08 kB / 0.5742 GB, free: 27.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.2978, allocations: 8.641 kB / 0.5742 GB, free: 27.8 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.000104/0.2979, allocations: 204.2 kB / 0.5744 GB, free: 27.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.138e-05/0.298, allocations: 13.95 kB / 0.5744 GB, free: 27.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.055e-05/0.298, allocations: 16.33 kB / 0.5744 GB, free: 27.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.298, allocations: 5.75 kB / 0.5744 GB, free: 27.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.298, allocations: 0 / 0.5744 GB, free: 27.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.298, allocations: 1.625 kB / 0.5744 GB, free: 27.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005933/0.2986, allocations: 0.5871 MB / 0.575 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2986, allocations: 0.7969 kB / 0.575 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.343e-05/0.2987, allocations: 15.06 kB / 0.575 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.2987, allocations: 0.6094 kB / 0.575 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.972e-05/0.2987, allocations: 11.33 kB / 0.575 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2988, allocations: 1.953 kB / 0.575 GB, free: 27.14 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.2988, allocations: 5.031 kB / 0.5751 GB, free: 27.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004671/0.2992, allocations: 401 kB / 0.5754 GB, free: 26.88 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.397e-05/0.2993, allocations: 93.92 kB / 0.5755 GB, free: 26.77 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.667e-05/0.2993, allocations: 4.781 kB / 0.5755 GB, free: 26.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.2994, allocations: 12.5 kB / 0.5755 GB, free: 26.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.221e-05/0.2995, allocations: 14.3 kB / 0.5756 GB, free: 26.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.2995, allocations: 9.25 kB / 0.5756 GB, free: 26.76 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.657e-05/0.2996, allocations: 126.1 kB / 0.5757 GB, free: 26.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2996, allocations: 0 / 0.5757 GB, free: 26.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002807/0.2999, allocations: 37.84 kB / 0.5757 GB, free: 26.67 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.0007524/0.3006, allocations: 0.952 MB / 0.5766 GB, free: 25.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004385/0.3011, allocations: 371.7 kB / 0.577 GB, free: 25.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3011, allocations: 0 / 0.577 GB, free: 25.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002075/0.3013, allocations: 208.5 kB / 0.5772 GB, free: 25.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.3016, allocations: 22.64 kB / 0.5772 GB, free: 25.42 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002081/0.3037, allocations: 2.101 MB / 0.5793 GB, free: 23.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001415/0.3039, allocations: 0.7117 MB / 0.58 GB, free: 23.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.915e-05/0.3039, allocations: 24.16 kB / 0.58 GB, free: 23.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.743e-05/0.304, allocations: 36.45 kB / 0.58 GB, free: 23.04 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.304, allocations: 2.531 kB / 0.58 GB, free: 23.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01823/0.3222, allocations: 3.584 MB / 0.5835 GB, free: 21.83 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.141/7.463, allocations: 8.766 kB / 0.5835 GB, free: 21.82 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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)