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.001313/0.001313, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001573/0.001573, allocations: 193.5 kB / 16.14 MB, free: 6.707 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.267/1.267, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002183/0.002183, allocations: 290.8 kB / 290.2 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.897/0.897, allocations: 169.2 MB / 0.4977 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 94.09 kB / 0.5946 GB, free: 28.22 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.131, allocations: 86.98 MB / 0.6795 GB, free: 1.07 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002333/0.1334, allocations: 1.473 MB / 0.681 GB, free: 15.6 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002671/0.1361, allocations: 2.636 MB / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.805e-05/0.1361, allocations: 0 / 0.6836 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.1373, allocations: 0.5521 MB / 0.6841 GB, free: 12.4 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.23e-05/0.1373, allocations: 19.92 kB / 0.6841 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.895e-06/0.1374, allocations: 0 / 0.6841 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002297/0.1376, allocations: 178.9 kB / 0.6843 GB, free: 12.21 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.931e-05/0.1377, allocations: 36.34 kB / 0.6843 GB, free: 12.17 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.7e-05/0.1377, allocations: 55.73 kB / 0.6844 GB, free: 12.12 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/0.1379, allocations: 83.52 kB / 0.6845 GB, free: 12.04 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.286e-05/0.1379, allocations: 0 / 0.6845 GB, free: 12.04 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009469/0.1388, allocations: 491.3 kB / 0.6849 GB, free: 11.55 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.451e-05/0.1389, allocations: 35.83 kB / 0.685 GB, free: 11.52 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.485e-05/0.139, allocations: 99.36 kB / 0.6851 GB, free: 11.42 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005408/0.1395, allocations: 390.4 kB / 0.6854 GB, free: 11.04 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1395, allocations: 0 / 0.6854 GB, free: 11.04 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1396, allocations: 0 / 0.6854 GB, free: 11.04 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.449e-06/0.1396, allocations: 0 / 0.6854 GB, free: 11.04 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.0007274/0.1403, allocations: 0.5529 MB / 0.686 GB, free: 10.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.1403, allocations: 12.03 kB / 0.686 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.56e-05/0.1404, allocations: 110 kB / 0.6861 GB, free: 10.3 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.1406, allocations: 103.9 kB / 0.6862 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002009/0.1408, allocations: 298.3 kB / 0.6865 GB, free: 9.875 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.002e-05/0.1408, allocations: 154.9 kB / 0.6866 GB, free: 9.723 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.271e-05/0.1409, allocations: 158.9 kB / 0.6868 GB, free: 9.566 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.204e-05/0.141, allocations: 105.5 kB / 0.6869 GB, free: 9.457 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.744e-05/0.141, allocations: 87.09 kB / 0.6869 GB, free: 9.371 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.978e-05/0.141, allocations: 154.6 kB / 0.6871 GB, free: 9.219 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.651e-05/0.1411, allocations: 154.5 kB / 0.6872 GB, free: 9.066 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.294e-05/0.1412, allocations: 150.6 kB / 0.6874 GB, free: 8.918 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003372/0.1415, allocations: 0.5328 MB / 0.6879 GB, free: 8.336 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.849e-05/0.1416, allocations: 169.1 kB / 0.6881 GB, free: 8.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.375e-05/0.1416, allocations: 84.08 kB / 0.6881 GB, free: 8.074 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.1416, allocations: 75.28 kB / 0.6882 GB, free: 8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.811e-05/0.1417, allocations: 109.8 kB / 0.6883 GB, free: 7.883 MB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 8.92e-07/0.1417, allocations: 3.938 kB / 0.6883 GB, free: 7.879 MB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001625/0.1419, allocations: 57.34 kB / 0.6884 GB, free: 7.816 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.1419, allocations: 134.7 kB / 0.6885 GB, free: 7.672 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003792/0.1423, allocations: 433.2 kB / 0.6889 GB, free: 7.238 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.276e-05/0.1423, allocations: 29.64 kB / 0.689 GB, free: 7.203 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.231e-05/0.1424, allocations: 132.5 kB / 0.6891 GB, free: 7.07 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.655e-06/0.1424, allocations: 0 / 0.6891 GB, free: 7.07 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.726e-05/0.1425, allocations: 93.66 kB / 0.6892 GB, free: 6.973 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1426, allocations: 334.8 kB / 0.6895 GB, free: 6.637 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.1427, allocations: 104.5 kB / 0.6896 GB, free: 6.535 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.1429, allocations: 161.3 kB / 0.6897 GB, free: 6.359 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.1431, allocations: 301.6 kB / 0.69 GB, free: 6.043 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.1432, allocations: 0 / 0.69 GB, free: 6.043 MB / 494.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004553/0.1436, allocations: 336.9 kB / 0.6903 GB, free: 5.707 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1436, allocations: 7.938 kB / 0.6904 GB, free: 5.699 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1436, allocations: 0 / 0.6904 GB, free: 5.699 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.1437, allocations: 4 kB / 0.6904 GB, free: 5.695 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.305e-06/0.1437, allocations: 4 kB / 0.6904 GB, free: 5.691 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.1437, allocations: 4 kB / 0.6904 GB, free: 5.688 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/0.1438, allocations: 47.28 kB / 0.6904 GB, free: 5.641 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.1438, allocations: 11.92 kB / 0.6904 GB, free: 5.629 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.0001812/0.144, allocations: 242.6 kB / 0.6907 GB, free: 5.383 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.022e-05/0.1441, allocations: 128.6 kB / 0.6908 GB, free: 5.25 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.149e-05/0.1441, allocations: 114.9 kB / 0.6909 GB, free: 5.129 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.145e-05/0.1442, allocations: 176.3 kB / 0.6911 GB, free: 4.949 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.514e-05/0.1443, allocations: 180.2 kB / 0.6912 GB, free: 4.766 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.581e-05/0.1443, allocations: 184.2 kB / 0.6914 GB, free: 4.578 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002622/0.1446, allocations: 473.3 kB / 0.6919 GB, free: 4.059 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.198e-05/0.1446, allocations: 112.9 kB / 0.692 GB, free: 3.941 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.739e-05/0.1447, allocations: 105 kB / 0.6921 GB, free: 3.832 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.369e-05/0.1447, allocations: 184.2 kB / 0.6922 GB, free: 3.645 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.153e-05/0.1448, allocations: 184.2 kB / 0.6924 GB, free: 3.457 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-05/0.1448, allocations: 184.3 kB / 0.6926 GB, free: 3.27 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-05/0.1449, allocations: 180.2 kB / 0.6928 GB, free: 3.086 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001276/0.145, allocations: 323.4 kB / 0.6931 GB, free: 2.746 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.852e-05/0.1451, allocations: 201.8 kB / 0.6933 GB, free: 2.523 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.644e-05/0.1452, allocations: 184.1 kB / 0.6934 GB, free: 2.336 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.1454, allocations: 112.9 kB / 0.6935 GB, free: 2.219 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.053e-05/0.1454, allocations: 180.2 kB / 0.6937 GB, free: 2.035 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.313e-05/0.1455, allocations: 108.9 kB / 0.6938 GB, free: 1.922 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002665/0.1457, allocations: 279.1 kB / 0.6941 GB, free: 1.652 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1457, allocations: 0 / 0.6941 GB, free: 1.652 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003231/0.1461, allocations: 76 kB / 0.6942 GB, free: 1.578 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.0005205/0.1466, allocations: 0.9571 MB / 0.6951 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001899/0.1468, allocations: 159.9 kB / 0.6952 GB, free: 452 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1468, allocations: 4.375 kB / 0.6953 GB, free: 448 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.272e-06/0.1468, allocations: 8 kB / 0.6953 GB, free: 440 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.1472, allocations: 0.5238 MB / 0.6958 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002623/0.1498, allocations: 2.936 MB / 0.6986 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.1501, allocations: 0.7785 MB / 0.6994 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.265e-05/0.1502, allocations: 7.938 kB / 0.6994 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.699e-05/0.1502, allocations: 47.42 kB / 0.6995 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.1502, allocations: 0 / 0.6995 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01391/0.1641, allocations: 6.045 MB / 0.7054 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001555/0.1643, allocations: 231.5 kB / 0.7056 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/1.875, allocations: 2.25 kB / 0.7056 GB, free: 5.863 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)