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.001652/0.001652, allocations: 108 kB / 15.61 MB, free: 148 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.001791/0.001791, allocations: 193.8 kB / 16.53 MB, free: 6.656 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.304/1.304, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002074/0.002074, allocations: 278.9 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9211/0.9211, allocations: 169.3 MB / 0.4982 GB, free: 13.92 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 99.22 kB / 0.5953 GB, free: 27.74 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1394, allocations: 86.98 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002438/0.1419, allocations: 1.409 MB / 0.6817 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003042/0.1449, allocations: 2.673 MB / 0.6843 GB, free: 12.5 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.062e-05/0.145, allocations: 0 / 0.6843 GB, free: 12.5 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001498/0.1465, allocations: 0.5781 MB / 0.6848 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.004e-05/0.1466, allocations: 23.89 kB / 0.6849 GB, free: 11.9 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.947e-06/0.1466, allocations: 0 / 0.6849 GB, free: 11.9 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002267/0.1468, allocations: 163 kB / 0.685 GB, free: 11.74 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.127e-05/0.1469, allocations: 36.34 kB / 0.6851 GB, free: 11.71 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.011e-05/0.1469, allocations: 63.67 kB / 0.6851 GB, free: 11.64 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.1471, allocations: 79.59 kB / 0.6852 GB, free: 11.57 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.423e-05/0.1471, allocations: 4 kB / 0.6852 GB, free: 11.56 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009636/0.1481, allocations: 463.3 kB / 0.6856 GB, free: 11.11 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.834e-05/0.1481, allocations: 39.78 kB / 0.6857 GB, free: 11.07 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.642e-05/0.1482, allocations: 95.41 kB / 0.6858 GB, free: 10.98 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005678/0.1488, allocations: 430.3 kB / 0.6862 GB, free: 10.55 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1488, allocations: 0 / 0.6862 GB, free: 10.55 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1488, allocations: 0 / 0.6862 GB, free: 10.55 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.1488, allocations: 0 / 0.6862 GB, free: 10.55 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.0006623/0.1495, allocations: 0.5529 MB / 0.6867 GB, free: 9.949 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.1495, allocations: 8.031 kB / 0.6867 GB, free: 9.941 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.321e-05/0.1496, allocations: 110 kB / 0.6868 GB, free: 9.824 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.1497, allocations: 103.9 kB / 0.6869 GB, free: 9.723 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000215/0.15, allocations: 306.2 kB / 0.6872 GB, free: 9.387 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.635e-05/0.15, allocations: 150.9 kB / 0.6874 GB, free: 9.238 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.064e-05/0.1501, allocations: 154.9 kB / 0.6875 GB, free: 9.086 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.48e-05/0.1501, allocations: 109.5 kB / 0.6876 GB, free: 8.973 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.1502, allocations: 79.22 kB / 0.6877 GB, free: 8.895 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.452e-05/0.1502, allocations: 158.5 kB / 0.6878 GB, free: 8.738 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.373e-05/0.1503, allocations: 150.6 kB / 0.688 GB, free: 8.59 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.286e-05/0.1503, allocations: 150.6 kB / 0.6881 GB, free: 8.441 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003382/0.1507, allocations: 0.5328 MB / 0.6886 GB, free: 7.859 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.975e-05/0.1507, allocations: 177.1 kB / 0.6888 GB, free: 7.676 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.709e-05/0.1508, allocations: 80.14 kB / 0.6889 GB, free: 7.594 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.1508, allocations: 75.28 kB / 0.689 GB, free: 7.52 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.1508, allocations: 113.8 kB / 0.6891 GB, free: 7.398 MB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 1.052e-06/0.1508, allocations: 4 kB / 0.6891 GB, free: 7.395 MB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001638/0.151, allocations: 53.36 kB / 0.6891 GB, free: 7.336 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.1511, allocations: 130.6 kB / 0.6893 GB, free: 7.195 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003871/0.1515, allocations: 437.2 kB / 0.6897 GB, free: 6.762 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.1515, allocations: 29.7 kB / 0.6897 GB, free: 6.727 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.126e-05/0.1516, allocations: 128.5 kB / 0.6898 GB, free: 6.598 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.254e-06/0.1516, allocations: 0 / 0.6898 GB, free: 6.598 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.294e-05/0.1517, allocations: 93.66 kB / 0.6899 GB, free: 6.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.1518, allocations: 342.8 kB / 0.6902 GB, free: 6.156 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.1519, allocations: 100.5 kB / 0.6903 GB, free: 6.059 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.152, allocations: 165.2 kB / 0.6905 GB, free: 5.879 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.1523, allocations: 305.6 kB / 0.6908 GB, free: 5.559 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1523, allocations: 0 / 0.6908 GB, free: 5.559 MB / 494.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004659/0.1528, allocations: 325 kB / 0.6911 GB, free: 5.234 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.1528, allocations: 7.938 kB / 0.6911 GB, free: 5.227 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1528, allocations: 4 kB / 0.6911 GB, free: 5.223 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.1529, allocations: 3.984 kB / 0.6911 GB, free: 5.219 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.468e-06/0.1529, allocations: 7.938 kB / 0.6911 GB, free: 5.211 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.1529, allocations: 0 / 0.6911 GB, free: 5.211 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.153, allocations: 47.28 kB / 0.6912 GB, free: 5.164 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.153, allocations: 7.938 kB / 0.6912 GB, free: 5.156 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.0002016/0.1533, allocations: 242.6 kB / 0.6914 GB, free: 4.91 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.342e-05/0.1533, allocations: 128.6 kB / 0.6915 GB, free: 4.777 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.459e-05/0.1534, allocations: 119 kB / 0.6916 GB, free: 4.652 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.106e-05/0.1535, allocations: 176.3 kB / 0.6918 GB, free: 4.473 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-05/0.1535, allocations: 184.2 kB / 0.692 GB, free: 4.285 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.033e-05/0.1536, allocations: 184.3 kB / 0.6922 GB, free: 4.098 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002695/0.1538, allocations: 481.1 kB / 0.6926 GB, free: 3.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.489e-05/0.1539, allocations: 105 kB / 0.6927 GB, free: 3.461 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.974e-05/0.1539, allocations: 101 kB / 0.6928 GB, free: 3.355 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.655e-05/0.154, allocations: 184.1 kB / 0.693 GB, free: 3.168 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.744e-05/0.154, allocations: 184.5 kB / 0.6932 GB, free: 2.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.938e-05/0.1541, allocations: 180.2 kB / 0.6933 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.632e-05/0.1542, allocations: 184.3 kB / 0.6935 GB, free: 2.609 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.1543, allocations: 327.4 kB / 0.6938 GB, free: 2.266 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.681e-05/0.1544, allocations: 197.8 kB / 0.694 GB, free: 2.047 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.221e-05/0.1545, allocations: 196.1 kB / 0.6942 GB, free: 1.848 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.1546, allocations: 101 kB / 0.6943 GB, free: 1.742 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.975e-05/0.1547, allocations: 176.3 kB / 0.6945 GB, free: 1.562 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.083e-05/0.1547, allocations: 108.9 kB / 0.6946 GB, free: 1.449 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002486/0.155, allocations: 279.1 kB / 0.6948 GB, free: 1.176 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.155, allocations: 0 / 0.6948 GB, free: 1.176 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003637/0.1554, allocations: 87.98 kB / 0.6949 GB, free: 1.09 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.0005864/0.156, allocations: 0.9682 MB / 0.6959 GB, free: 96 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002155/0.1562, allocations: 168.3 kB / 0.696 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1562, allocations: 4.062 kB / 0.696 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.513e-06/0.1562, allocations: 0 / 0.696 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.1566, allocations: 465.9 kB / 0.6965 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002622/0.1592, allocations: 2.899 MB / 0.6993 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.1595, allocations: 0.7782 MB / 0.7001 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.555e-05/0.1595, allocations: 4 kB / 0.7001 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.327e-05/0.1596, allocations: 51.42 kB / 0.7001 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1596, allocations: 0 / 0.7001 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02348/0.1831, allocations: 6.402 MB / 0.7064 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.642/7.825, allocations: 20.55 kB / 0.7064 GB, free: 5.316 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)