Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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: "" <> buildModelFMU(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="BuildingSystems_BuildingSystems_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.001279/0.001279, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 193.4 kB / 16.67 MB, free: 6.582 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002523/0.002523, allocations: 294.3 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.05/1.05, allocations: 178.6 MB / 0.5074 GB, free: 4.492 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002733/0.002733, allocations: 95.84 kB / 0.6943 GB, free: 3.613 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4711/0.4738, allocations: 89.14 MB / 0.7813 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002507/0.4763, allocations: 1.418 MB / 0.7827 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003393/0.4798, allocations: 2.672 MB / 0.7853 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.317e-05/0.4798, allocations: 1.344 kB / 0.7853 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001599/0.4814, allocations: 0.5843 MB / 0.7859 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.226e-05/0.4815, allocations: 20.39 kB / 0.7859 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 4.047e-06/0.4815, allocations: 0 / 0.7859 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002459/0.4817, allocations: 162.3 kB / 0.786 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 6.932e-05/0.4818, allocations: 34.22 kB / 0.7861 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.303e-05/0.4819, allocations: 61.05 kB / 0.7861 GB, free: 10.54 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.482, allocations: 76.88 kB / 0.7862 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.285e-05/0.4821, allocations: 1.312 kB / 0.7862 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00109/0.4831, allocations: 474.4 kB / 0.7867 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.31e-05/0.4832, allocations: 33.02 kB / 0.7867 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001133/0.4833, allocations: 96.58 kB / 0.7868 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0007102/0.484, allocations: 440.1 kB / 0.7872 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.4841, allocations: 0.6562 kB / 0.7872 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.452e-06/0.4841, allocations: 0 / 0.7872 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.901e-06/0.4841, allocations: 4 kB / 0.7872 GB, free: 10.14 MB / 0.5606 GB 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.0008291/0.4849, allocations: 0.5589 MB / 0.7878 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.485, allocations: 8.812 kB / 0.7878 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.734e-05/0.485, allocations: 116 kB / 0.7879 GB, free: 9.531 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001791/0.4852, allocations: 104.5 kB / 0.788 GB, free: 9.441 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000263/0.4855, allocations: 295.2 kB / 0.7883 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.513e-05/0.4856, allocations: 160.6 kB / 0.7884 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.957e-05/0.4857, allocations: 154 kB / 0.7886 GB, free: 8.848 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.967e-05/0.4857, allocations: 101.5 kB / 0.7887 GB, free: 8.742 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.897e-05/0.4858, allocations: 89.09 kB / 0.7887 GB, free: 8.656 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.981e-05/0.4859, allocations: 150.6 kB / 0.7889 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.154e-05/0.4859, allocations: 154.6 kB / 0.789 GB, free: 8.355 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.29e-05/0.486, allocations: 152.5 kB / 0.7892 GB, free: 8.207 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004447/0.4865, allocations: 0.5393 MB / 0.7897 GB, free: 7.68 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001038/0.4866, allocations: 174.4 kB / 0.7899 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.987e-05/0.4866, allocations: 84.14 kB / 0.79 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.26e-05/0.4867, allocations: 76.03 kB / 0.79 GB, free: 7.34 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.272e-05/0.4867, allocations: 106.9 kB / 0.7901 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=0): time 9.42e-07/0.4867, allocations: 1.125 kB / 0.7901 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of matching and sorting (n=0): time 0.0001808/0.4869, allocations: 59.55 kB / 0.7902 GB, free: 7.176 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.495e-05/0.487, allocations: 126.7 kB / 0.7903 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004826/0.4875, allocations: 432.4 kB / 0.7907 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.4875, allocations: 34.36 kB / 0.7907 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.4876, allocations: 135 kB / 0.7909 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.174e-06/0.4876, allocations: 0 / 0.7909 GB, free: 6.672 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.4878, allocations: 89.55 kB / 0.791 GB, free: 6.633 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000166/0.488, allocations: 340.6 kB / 0.7913 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.4881, allocations: 98.03 kB / 0.7914 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002269/0.4884, allocations: 166.7 kB / 0.7915 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004232/0.4888, allocations: 305.3 kB / 0.7918 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.4888, allocations: 0 / 0.7918 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000542/0.4893, allocations: 331.7 kB / 0.7921 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.4894, allocations: 10.53 kB / 0.7922 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.4894, allocations: 5.531 kB / 0.7922 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.4894, allocations: 6.531 kB / 0.7922 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.298e-06/0.4894, allocations: 5.969 kB / 0.7922 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.4894, allocations: 2.812 kB / 0.7922 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.4896, allocations: 45.8 kB / 0.7922 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.4896, allocations: 4.031 kB / 0.7922 GB, free: 5.824 MB / 0.5606 GB 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.0002508/0.4899, allocations: 246.1 kB / 0.7925 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.929e-05/0.4899, allocations: 133 kB / 0.7926 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.586e-05/0.49, allocations: 119.5 kB / 0.7927 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.114e-05/0.4901, allocations: 182.8 kB / 0.7929 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.737e-05/0.4902, allocations: 177 kB / 0.793 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-05/0.4903, allocations: 178.4 kB / 0.7932 GB, free: 4.824 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003485/0.4906, allocations: 480.6 kB / 0.7937 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.142e-05/0.4907, allocations: 106.9 kB / 0.7938 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.768e-05/0.4908, allocations: 106.6 kB / 0.7939 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.631e-05/0.4908, allocations: 182.1 kB / 0.7941 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.311e-05/0.4909, allocations: 178.2 kB / 0.7942 GB, free: 3.77 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.896e-05/0.491, allocations: 188.9 kB / 0.7944 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.178e-05/0.4911, allocations: 178.7 kB / 0.7946 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001752/0.4913, allocations: 323.8 kB / 0.7949 GB, free: 3.07 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.4914, allocations: 206.8 kB / 0.7951 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/0.4916, allocations: 190.6 kB / 0.7953 GB, free: 2.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.4917, allocations: 103.2 kB / 0.7954 GB, free: 2.555 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.316e-05/0.4918, allocations: 186.2 kB / 0.7955 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-05/0.4919, allocations: 103.1 kB / 0.7956 GB, free: 2.262 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002971/0.4922, allocations: 279.5 kB / 0.7959 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4922, allocations: 0 / 0.7959 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004165/0.4926, allocations: 82.84 kB / 0.796 GB, free: 2.129 MB / 0.5606 GB 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.0007393/0.4933, allocations: 0.9655 MB / 0.7969 GB, free: 1.246 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002354/0.4936, allocations: 165.6 kB / 0.7971 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4936, allocations: 0 / 0.7971 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.924e-06/0.4936, allocations: 1.094 kB / 0.7971 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.494, allocations: 467.9 kB / 0.7975 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003129/0.4972, allocations: 2.934 MB / 0.8004 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/0.4976, allocations: 0.7726 MB / 0.8011 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.535e-05/0.4976, allocations: 3.688 kB / 0.8011 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.672e-05/0.4977, allocations: 56.3 kB / 0.8012 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of SimCode: time 2.11e-07/0.4977, allocations: 0 / 0.8012 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.5264, allocations: 6.476 MB / 0.8075 GB, free: 11.44 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.063/8.589, allocations: 5.062 kB / 0.8075 GB, free: 11.44 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1)