Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.Transmission.Functions.Validation.SelectCable_med.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.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_Transmission_Functions_Validation_SelectCable_med",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.001282/0.001282, allocations: 105.2 kB / 16.27 MB, free: 6.41 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.00116/0.00116, allocations: 184.6 kB / 17.2 MB, free: 5.953 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.295/1.295, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7475/0.7475, allocations: 122.8 MB / 413.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 63.89 kB / 0.4912 GB, free: 7.336 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3659/0.3677, allocations: 77.92 MB / 0.5673 GB, free: 32.69 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002485/0.3702, allocations: 1.399 MB / 0.5687 GB, free: 31.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002813/0.3731, allocations: 2.673 MB / 0.5713 GB, free: 29.85 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.129e-05/0.3731, allocations: 1.156 kB / 0.5713 GB, free: 29.85 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001739/0.3749, allocations: 0.5864 MB / 0.5718 GB, free: 29.54 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.348e-05/0.375, allocations: 16.89 kB / 0.5719 GB, free: 29.53 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.08e-06/0.375, allocations: 5.219 kB / 0.5719 GB, free: 29.53 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002542/0.3753, allocations: 153.2 kB / 0.572 GB, free: 29.46 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.243e-05/0.3754, allocations: 34.97 kB / 0.572 GB, free: 29.45 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.887e-05/0.3754, allocations: 61.7 kB / 0.5721 GB, free: 29.43 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001334/0.3756, allocations: 81.38 kB / 0.5722 GB, free: 29.39 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.796e-05/0.3756, allocations: 2.469 kB / 0.5722 GB, free: 29.39 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001133/0.3767, allocations: 463.6 kB / 0.5726 GB, free: 29.3 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.021e-05/0.3768, allocations: 37.23 kB / 0.5727 GB, free: 29.28 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001185/0.3769, allocations: 97.84 kB / 0.5727 GB, free: 29.23 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007105/0.3777, allocations: 441.8 kB / 0.5732 GB, free: 29.04 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.3777, allocations: 4.906 kB / 0.5732 GB, free: 29.04 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3777, allocations: 0 / 0.5732 GB, free: 29.04 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.3777, allocations: 1.125 kB / 0.5732 GB, free: 29.04 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0006773/0.3784, allocations: 0.5407 MB / 0.5737 GB, free: 28.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.3784, allocations: 8.875 kB / 0.5737 GB, free: 28.57 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.861e-05/0.3785, allocations: 111.2 kB / 0.5738 GB, free: 28.45 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.3786, allocations: 104 kB / 0.5739 GB, free: 28.36 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.3788, allocations: 304.9 kB / 0.5742 GB, free: 28.06 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.185e-05/0.3789, allocations: 152.1 kB / 0.5744 GB, free: 27.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.288e-05/0.3789, allocations: 159.8 kB / 0.5745 GB, free: 27.76 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.73e-05/0.379, allocations: 105.8 kB / 0.5746 GB, free: 27.65 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.379, allocations: 79.22 kB / 0.5747 GB, free: 27.57 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.967e-05/0.379, allocations: 155.2 kB / 0.5748 GB, free: 27.42 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.44e-05/0.3791, allocations: 150.6 kB / 0.575 GB, free: 27.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.974e-05/0.3791, allocations: 157.3 kB / 0.5751 GB, free: 27.12 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003059/0.3794, allocations: 0.5316 MB / 0.5756 GB, free: 26.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.716e-05/0.3795, allocations: 167.7 kB / 0.5758 GB, free: 26.43 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.184e-05/0.3795, allocations: 90.53 kB / 0.5759 GB, free: 26.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.3795, allocations: 79.27 kB / 0.576 GB, free: 26.26 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.3796, allocations: 113.4 kB / 0.5761 GB, free: 26.14 MB / 446.1 MB Notification: Performance of pre-optimization done (n=0): time 8.52e-07/0.3796, allocations: 0 / 0.5761 GB, free: 26.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001701/0.3797, allocations: 58.8 kB / 0.5761 GB, free: 26.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.192e-05/0.3798, allocations: 128.5 kB / 0.5762 GB, free: 25.96 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004496/0.3802, allocations: 434.2 kB / 0.5767 GB, free: 25.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.826e-06/0.3803, allocations: 26.92 kB / 0.5767 GB, free: 25.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.419e-05/0.3803, allocations: 130.8 kB / 0.5768 GB, free: 25.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.198e-06/0.3803, allocations: 0 / 0.5768 GB, free: 25.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.198e-05/0.3804, allocations: 90.61 kB / 0.5769 GB, free: 25.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.393e-05/0.3805, allocations: 340.7 kB / 0.5772 GB, free: 25.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.3806, allocations: 98.48 kB / 0.5773 GB, free: 25.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.3808, allocations: 168.4 kB / 0.5775 GB, free: 25.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003947/0.3812, allocations: 304.3 kB / 0.5778 GB, free: 24.95 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3812, allocations: 0 / 0.5778 GB, free: 24.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006434/0.3819, allocations: 335.1 kB / 0.5781 GB, free: 24.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.3819, allocations: 10.19 kB / 0.5781 GB, free: 24.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.3819, allocations: 1.359 kB / 0.5781 GB, free: 24.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.382, allocations: 3.031 kB / 0.5781 GB, free: 24.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.438e-06/0.382, allocations: 2.719 kB / 0.5781 GB, free: 24.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.382, allocations: 12.56 kB / 0.5781 GB, free: 24.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001729/0.3822, allocations: 40 kB / 0.5782 GB, free: 24.76 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.399e-05/0.3822, allocations: 5.781 kB / 0.5782 GB, free: 24.76 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (cab[1].material,cab[2].material,cab[3].material,cab[4].material,cab[5].material,cab[6].material,cab[7].material) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.0002172/0.3824, allocations: 246.8 kB / 0.5784 GB, free: 24.56 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.161e-05/0.3825, allocations: 129 kB / 0.5785 GB, free: 24.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.737e-05/0.3826, allocations: 115.7 kB / 0.5786 GB, free: 24.31 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.217e-05/0.3826, allocations: 183.7 kB / 0.5788 GB, free: 24.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.618e-05/0.3826, allocations: 177.4 kB / 0.579 GB, free: 23.95 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.123e-05/0.3827, allocations: 182.7 kB / 0.5791 GB, free: 23.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003089/0.383, allocations: 475.2 kB / 0.5796 GB, free: 23.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.931e-05/0.383, allocations: 101.6 kB / 0.5797 GB, free: 23.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.862e-05/0.3831, allocations: 108.7 kB / 0.5798 GB, free: 23.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.53e-05/0.3831, allocations: 182.2 kB / 0.58 GB, free: 22.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.017e-05/0.3832, allocations: 188.1 kB / 0.5802 GB, free: 22.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.166e-05/0.3832, allocations: 178.2 kB / 0.5803 GB, free: 22.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-05/0.3833, allocations: 182 kB / 0.5805 GB, free: 22.35 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001262/0.3834, allocations: 328.6 kB / 0.5808 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.356e-05/0.3835, allocations: 202.9 kB / 0.581 GB, free: 21.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.195e-05/0.3836, allocations: 184.8 kB / 0.5812 GB, free: 21.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.3837, allocations: 104.3 kB / 0.5813 GB, free: 21.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.136e-05/0.3838, allocations: 186.9 kB / 0.5815 GB, free: 21.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.3838, allocations: 103 kB / 0.5816 GB, free: 21.22 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003432/0.3842, allocations: 279.5 kB / 0.5818 GB, free: 21.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3842, allocations: 0 / 0.5818 GB, free: 21.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0005828/0.3848, allocations: 83.33 kB / 0.5819 GB, free: 21.09 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0007376/0.3855, allocations: 0.9686 MB / 0.5829 GB, free: 20.22 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003214/0.3859, allocations: 160.6 kB / 0.583 GB, free: 20.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3859, allocations: 0.9375 kB / 0.583 GB, free: 20.15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.534e-06/0.3859, allocations: 0 / 0.583 GB, free: 20.15 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004103/0.3863, allocations: 470.7 kB / 0.5835 GB, free: 19.69 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002865/0.3892, allocations: 2.901 MB / 0.5863 GB, free: 17.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.3895, allocations: 0.7775 MB / 0.587 GB, free: 17.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.346e-05/0.3895, allocations: 8.281 kB / 0.5871 GB, free: 17.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.877e-05/0.3896, allocations: 50.55 kB / 0.5871 GB, free: 17.05 MB / 446.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3896, allocations: 1.688 kB / 0.5871 GB, free: 17.05 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02447/0.4141, allocations: 6.395 MB / 0.5933 GB, free: 14.29 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.082/7.496, allocations: 12.11 kB / 0.5934 GB, free: 14.29 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.Transmission.Functions.Validation.SelectCable_med_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > IBPSA_latest_IBPSA.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1)