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.0009426/0.0009428, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006995/0.006996, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.293/1.293, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001737/0.001738, allocations: 262.5 kB / 291.7 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9919/0.9919, allocations: 169.5 MB / 0.5004 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004016/0.0004018, allocations: 13.25 kB / 0.5988 GB, free: 28.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1469, allocations: 88.55 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.001512/0.1485, allocations: 1.136 MB / 0.6863 GB, free: 13.81 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002946/0.1514, allocations: 2.602 MB / 0.6889 GB, free: 11.21 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.884e-05/0.1515, allocations: 0 / 0.6889 GB, free: 11.21 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00128/0.1527, allocations: 0.5526 MB / 0.6894 GB, free: 10.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.654e-05/0.1528, allocations: 19.91 kB / 0.6894 GB, free: 10.64 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.346e-06/0.1528, allocations: 0.7812 kB / 0.6894 GB, free: 10.64 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002364/0.1531, allocations: 174.9 kB / 0.6896 GB, free: 10.47 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.079e-05/0.1531, allocations: 36.16 kB / 0.6896 GB, free: 10.44 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.259e-05/0.1532, allocations: 51.75 kB / 0.6897 GB, free: 10.39 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001318/0.1533, allocations: 83.52 kB / 0.6898 GB, free: 10.3 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.234e-05/0.1534, allocations: 11.94 kB / 0.6898 GB, free: 10.29 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009061/0.1543, allocations: 491.2 kB / 0.6903 GB, free: 9.812 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.146e-05/0.1543, allocations: 39.77 kB / 0.6903 GB, free: 9.773 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.1544, allocations: 121.1 kB / 0.6904 GB, free: 9.648 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005109/0.155, allocations: 382.4 kB / 0.6908 GB, free: 9.273 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.155, allocations: 11.88 kB / 0.6908 GB, free: 9.262 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.155, allocations: 4 kB / 0.6908 GB, free: 9.258 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.155, allocations: 0 / 0.6908 GB, free: 9.258 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.0006709/0.1557, allocations: 0.5179 MB / 0.6913 GB, free: 8.688 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.1557, allocations: 16.03 kB / 0.6913 GB, free: 8.672 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.226e-05/0.1558, allocations: 106 kB / 0.6914 GB, free: 8.559 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001617/0.1559, allocations: 103.8 kB / 0.6915 GB, free: 8.457 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002333/0.1562, allocations: 310.3 kB / 0.6918 GB, free: 8.117 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.295e-05/0.1563, allocations: 154.9 kB / 0.692 GB, free: 7.965 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.267e-05/0.1563, allocations: 154.9 kB / 0.6921 GB, free: 7.812 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.256e-05/0.1564, allocations: 109.5 kB / 0.6922 GB, free: 7.699 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.457e-05/0.1564, allocations: 79.22 kB / 0.6923 GB, free: 7.621 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.276e-05/0.1565, allocations: 150.6 kB / 0.6924 GB, free: 7.473 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-05/0.1565, allocations: 150.6 kB / 0.6926 GB, free: 7.324 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.055e-05/0.1566, allocations: 154.5 kB / 0.6927 GB, free: 7.172 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003625/0.157, allocations: 0.5367 MB / 0.6932 GB, free: 6.586 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.406e-05/0.157, allocations: 165.1 kB / 0.6934 GB, free: 6.414 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.562e-05/0.1571, allocations: 80.14 kB / 0.6935 GB, free: 6.332 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.1571, allocations: 75.28 kB / 0.6935 GB, free: 6.258 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/0.1571, allocations: 109.8 kB / 0.6936 GB, free: 6.141 MB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 9.02e-07/0.1572, allocations: 4 kB / 0.6937 GB, free: 6.137 MB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001721/0.1573, allocations: 65.19 kB / 0.6937 GB, free: 6.066 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.1574, allocations: 130.7 kB / 0.6938 GB, free: 5.926 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004164/0.1578, allocations: 425.3 kB / 0.6942 GB, free: 5.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.1578, allocations: 25.7 kB / 0.6943 GB, free: 5.469 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.84e-05/0.1579, allocations: 132.5 kB / 0.6944 GB, free: 5.336 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.395e-06/0.1579, allocations: 0 / 0.6944 GB, free: 5.336 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.711e-05/0.158, allocations: 73.67 kB / 0.6945 GB, free: 5.258 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1581, allocations: 346.8 kB / 0.6948 GB, free: 4.91 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.1583, allocations: 96.52 kB / 0.6949 GB, free: 4.816 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.1584, allocations: 169.2 kB / 0.6951 GB, free: 4.633 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002934/0.1587, allocations: 305.6 kB / 0.6953 GB, free: 4.312 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1587, allocations: 0 / 0.6953 GB, free: 4.312 MB / 494.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004933/0.1592, allocations: 336.8 kB / 0.6957 GB, free: 3.977 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.1592, allocations: 11.88 kB / 0.6957 GB, free: 3.965 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1593, allocations: 4 kB / 0.6957 GB, free: 3.961 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.1593, allocations: 3.984 kB / 0.6957 GB, free: 3.957 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.206e-06/0.1593, allocations: 4 kB / 0.6957 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.1593, allocations: 0 / 0.6957 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.1594, allocations: 43.38 kB / 0.6957 GB, free: 3.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.1595, allocations: 4 kB / 0.6957 GB, free: 3.906 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.0001908/0.1597, allocations: 248.4 kB / 0.696 GB, free: 3.656 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.678e-05/0.1597, allocations: 132.5 kB / 0.6961 GB, free: 3.52 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.664e-05/0.1598, allocations: 111 kB / 0.6962 GB, free: 3.402 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.14e-05/0.1599, allocations: 184.2 kB / 0.6964 GB, free: 3.215 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.315e-05/0.1599, allocations: 180.2 kB / 0.6965 GB, free: 3.031 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-05/0.16, allocations: 184.3 kB / 0.6967 GB, free: 2.844 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002853/0.1603, allocations: 477.2 kB / 0.6972 GB, free: 2.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.213e-05/0.1603, allocations: 105 kB / 0.6973 GB, free: 2.211 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.159e-05/0.1604, allocations: 104.9 kB / 0.6974 GB, free: 2.102 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.969e-05/0.1604, allocations: 184.2 kB / 0.6976 GB, free: 1.914 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.038e-05/0.1605, allocations: 184.3 kB / 0.6977 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-05/0.1606, allocations: 188.2 kB / 0.6979 GB, free: 1.535 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.015e-05/0.1606, allocations: 180.3 kB / 0.6981 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001308/0.1608, allocations: 319.5 kB / 0.6984 GB, free: 1.016 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.409e-05/0.1609, allocations: 201.7 kB / 0.6986 GB, free: 0.793 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.862e-05/0.161, allocations: 192.2 kB / 0.6988 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.1611, allocations: 101 kB / 0.6989 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.741e-05/0.1612, allocations: 188.1 kB / 0.699 GB, free: 308 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.197e-05/0.1612, allocations: 105 kB / 0.6991 GB, free: 196 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002715/0.1615, allocations: 279.1 kB / 0.6994 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1615, allocations: 0 / 0.6994 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003556/0.1618, allocations: 76 kB / 0.6995 GB, free: 15.85 MB / 0.4981 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.0005767/0.1624, allocations: 0.9488 MB / 0.7004 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002104/0.1626, allocations: 160.2 kB / 0.7006 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1627, allocations: 4.062 kB / 0.7006 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.956e-06/0.1627, allocations: 0 / 0.7006 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.1631, allocations: 0.5323 MB / 0.7011 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002873/0.166, allocations: 2.942 MB / 0.704 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.1663, allocations: 0.7785 MB / 0.7047 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.364e-05/0.1663, allocations: 4 kB / 0.7047 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.387e-05/0.1664, allocations: 55.41 kB / 0.7048 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of SimCode: time 3.8e-07/0.1664, allocations: 0 / 0.7048 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01547/0.1819, allocations: 5.945 MB / 0.7106 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001859/0.1821, allocations: 237 kB / 0.7108 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/1.932, allocations: 2.031 kB / 0.7108 GB, free: 4.246 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)