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.001364/0.001364, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001542/0.001543, allocations: 189.6 kB / 16.25 MB, free: 6.633 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.31/1.31, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001957/0.001957, allocations: 282.9 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9532/0.9532, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 90.48 kB / 0.5948 GB, free: 28.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1413, allocations: 86.97 MB / 0.6797 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002365/0.1437, allocations: 1.473 MB / 0.6812 GB, free: 15.52 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002775/0.1465, allocations: 2.638 MB / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.553e-05/0.1465, allocations: 0 / 0.6837 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001386/0.1479, allocations: 0.5638 MB / 0.6843 GB, free: 12.31 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.632e-05/0.148, allocations: 15.91 kB / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.388e-06/0.148, allocations: 0 / 0.6843 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002188/0.1482, allocations: 154.9 kB / 0.6845 GB, free: 12.14 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.551e-05/0.1483, allocations: 40.34 kB / 0.6845 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.563e-05/0.1484, allocations: 63.72 kB / 0.6846 GB, free: 12.04 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.1485, allocations: 71.59 kB / 0.6846 GB, free: 11.97 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.399e-05/0.1485, allocations: 4 kB / 0.6846 GB, free: 11.97 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009187/0.1494, allocations: 499.2 kB / 0.6851 GB, free: 11.48 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.079e-05/0.1495, allocations: 35.78 kB / 0.6851 GB, free: 11.45 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.416e-05/0.1496, allocations: 95.42 kB / 0.6852 GB, free: 11.35 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005091/0.1501, allocations: 402.3 kB / 0.6856 GB, free: 10.96 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1501, allocations: 0 / 0.6856 GB, free: 10.96 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1501, allocations: 0 / 0.6856 GB, free: 10.96 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1501, allocations: 4 kB / 0.6856 GB, free: 10.95 MB / 494.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.0006882/0.1508, allocations: 0.549 MB / 0.6862 GB, free: 10.35 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.1509, allocations: 8.031 kB / 0.6862 GB, free: 10.34 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.149e-05/0.1509, allocations: 106 kB / 0.6863 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.1511, allocations: 103.9 kB / 0.6864 GB, free: 10.13 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002091/0.1513, allocations: 310.2 kB / 0.6867 GB, free: 9.789 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.067e-05/0.1514, allocations: 154.9 kB / 0.6868 GB, free: 9.637 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.646e-05/0.1514, allocations: 158.9 kB / 0.687 GB, free: 9.48 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.13e-05/0.1515, allocations: 101.5 kB / 0.6871 GB, free: 9.375 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.1515, allocations: 79.22 kB / 0.6871 GB, free: 9.297 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.76e-05/0.1516, allocations: 154.5 kB / 0.6873 GB, free: 9.145 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.865e-05/0.1516, allocations: 154.6 kB / 0.6874 GB, free: 8.992 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.593e-05/0.1517, allocations: 150.6 kB / 0.6876 GB, free: 8.844 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003424/0.152, allocations: 0.5328 MB / 0.6881 GB, free: 8.262 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.779e-05/0.1521, allocations: 165.1 kB / 0.6882 GB, free: 8.09 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.268e-05/0.1521, allocations: 84.14 kB / 0.6883 GB, free: 8.004 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.1522, allocations: 83.2 kB / 0.6884 GB, free: 7.922 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.1522, allocations: 113.8 kB / 0.6885 GB, free: 7.801 MB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 9.62e-07/0.1522, allocations: 0 / 0.6885 GB, free: 7.801 MB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001578/0.1524, allocations: 53.36 kB / 0.6886 GB, free: 7.742 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/0.1524, allocations: 130.7 kB / 0.6887 GB, free: 7.602 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003997/0.1529, allocations: 433.2 kB / 0.6891 GB, free: 7.168 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.1529, allocations: 29.7 kB / 0.6891 GB, free: 7.133 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.486e-05/0.153, allocations: 128.5 kB / 0.6893 GB, free: 7.004 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.908e-06/0.153, allocations: 3.938 kB / 0.6893 GB, free: 7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.012e-05/0.1531, allocations: 101.5 kB / 0.6894 GB, free: 6.895 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.1532, allocations: 338.8 kB / 0.6897 GB, free: 6.555 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.1533, allocations: 100.5 kB / 0.6898 GB, free: 6.457 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001436/0.1534, allocations: 165.3 kB / 0.6899 GB, free: 6.277 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002686/0.1537, allocations: 301.7 kB / 0.6902 GB, free: 5.961 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1537, allocations: 0 / 0.6902 GB, free: 5.961 MB / 494.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004502/0.1542, allocations: 328.9 kB / 0.6905 GB, free: 5.633 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.1542, allocations: 7.938 kB / 0.6905 GB, free: 5.625 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.1542, allocations: 4.219 kB / 0.6905 GB, free: 5.621 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.1542, allocations: 4 kB / 0.6905 GB, free: 5.617 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.316e-06/0.1542, allocations: 4 kB / 0.6906 GB, free: 5.613 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.1542, allocations: 3.984 kB / 0.6906 GB, free: 5.609 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001322/0.1544, allocations: 47.28 kB / 0.6906 GB, free: 5.562 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.1544, allocations: 4 kB / 0.6906 GB, free: 5.559 MB / 494.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.000202/0.1546, allocations: 244.3 kB / 0.6908 GB, free: 5.312 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.883e-05/0.1547, allocations: 124.6 kB / 0.691 GB, free: 5.184 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.243e-05/0.1547, allocations: 126.9 kB / 0.6911 GB, free: 5.051 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.478e-05/0.1548, allocations: 176.3 kB / 0.6912 GB, free: 4.871 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.004e-05/0.1549, allocations: 176.3 kB / 0.6914 GB, free: 4.691 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-05/0.1549, allocations: 184.3 kB / 0.6916 GB, free: 4.504 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002721/0.1552, allocations: 481.2 kB / 0.692 GB, free: 3.977 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.907e-05/0.1553, allocations: 112.9 kB / 0.6922 GB, free: 3.859 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.318e-05/0.1553, allocations: 109 kB / 0.6923 GB, free: 3.746 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.121e-05/0.1554, allocations: 180.2 kB / 0.6924 GB, free: 3.562 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.211e-05/0.1554, allocations: 188.2 kB / 0.6926 GB, free: 3.371 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.915e-05/0.1555, allocations: 176.3 kB / 0.6928 GB, free: 3.191 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.523e-05/0.1555, allocations: 184.2 kB / 0.693 GB, free: 3.004 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001239/0.1557, allocations: 331.4 kB / 0.6933 GB, free: 2.656 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.815e-05/0.1558, allocations: 197.8 kB / 0.6935 GB, free: 2.438 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.316e-05/0.1558, allocations: 188.2 kB / 0.6936 GB, free: 2.246 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.156, allocations: 104.9 kB / 0.6937 GB, free: 2.137 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.471e-05/0.156, allocations: 180.3 kB / 0.6939 GB, free: 1.953 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.193e-05/0.1561, allocations: 105 kB / 0.694 GB, free: 1.844 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002412/0.1563, allocations: 283 kB / 0.6943 GB, free: 1.57 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.534e-06/0.1563, allocations: 0 / 0.6943 GB, free: 1.57 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003495/0.1567, allocations: 79.94 kB / 0.6944 GB, free: 1.492 MB / 494.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.0005539/0.1572, allocations: 0.9515 MB / 0.6953 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002011/0.1574, allocations: 159.9 kB / 0.6954 GB, free: 368 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.1575, allocations: 3.938 kB / 0.6954 GB, free: 364 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.815e-06/0.1575, allocations: 3.938 kB / 0.6954 GB, free: 360 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/0.1579, allocations: 465.6 kB / 0.6959 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002778/0.1606, allocations: 2.93 MB / 0.6988 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.161, allocations: 0.7782 MB / 0.6995 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.253e-05/0.161, allocations: 0 / 0.6995 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.498e-05/0.1611, allocations: 55.41 kB / 0.6996 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1611, allocations: 0 / 0.6996 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01597/0.177, allocations: 6.141 MB / 0.7056 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000184/0.1773, allocations: 246.1 kB / 0.7058 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.878/2.055, allocations: 0 / 0.7058 GB, free: 5.777 MB / 0.4981 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_med_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1)