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.008218/0.008218, allocations: 100.4 kB / 15.73 MB, free: 6.035 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.001927/0.001927, allocations: 186.1 kB / 16.67 MB, free: 5.969 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.49/1.49, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002121/0.002121, allocations: 282.6 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9421/0.9421, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 99.84 kB / 0.6809 GB, free: 44 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.1702, allocations: 86.97 MB / 0.7659 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002623/0.1729, allocations: 1.42 MB / 0.7673 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003219/0.1761, allocations: 2.671 MB / 0.7699 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.538e-05/0.1762, allocations: 0 / 0.7699 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001928/0.1781, allocations: 0.5888 MB / 0.7704 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.653e-05/0.1782, allocations: 23.83 kB / 0.7705 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 6.102e-06/0.1782, allocations: 0 / 0.7705 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002543/0.1785, allocations: 162.9 kB / 0.7706 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.34e-05/0.1786, allocations: 32.41 kB / 0.7707 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.676e-05/0.1787, allocations: 55.73 kB / 0.7707 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001421/0.1788, allocations: 79.58 kB / 0.7708 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.1789, allocations: 4 kB / 0.7708 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001139/0.18, allocations: 471.3 kB / 0.7712 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.509e-05/0.1801, allocations: 39.77 kB / 0.7713 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.1802, allocations: 91.44 kB / 0.7714 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006791/0.1809, allocations: 434.3 kB / 0.7718 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1809, allocations: 0 / 0.7718 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.172e-06/0.1809, allocations: 0 / 0.7718 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.272e-06/0.1809, allocations: 4 kB / 0.7718 GB, free: 2.926 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.0007403/0.1816, allocations: 0.5528 MB / 0.7723 GB, free: 2.32 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.1817, allocations: 8.031 kB / 0.7723 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.902e-05/0.1818, allocations: 110 kB / 0.7724 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001781/0.182, allocations: 107.8 kB / 0.7725 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/0.1822, allocations: 302.3 kB / 0.7728 GB, free: 1.758 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.093e-05/0.1823, allocations: 158.9 kB / 0.773 GB, free: 1.602 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.804e-05/0.1823, allocations: 154.9 kB / 0.7731 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.057e-05/0.1824, allocations: 105.5 kB / 0.7732 GB, free: 1.34 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.988e-05/0.1824, allocations: 79.22 kB / 0.7733 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.718e-05/0.1825, allocations: 154.6 kB / 0.7734 GB, free: 1.109 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.113e-05/0.1825, allocations: 158.5 kB / 0.7736 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.917e-05/0.1826, allocations: 150.6 kB / 0.7737 GB, free: 0.8047 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003558/0.183, allocations: 0.5327 MB / 0.7743 GB, free: 228 kB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 7.535e-05/0.183, allocations: 169.1 kB / 0.7744 GB, free: 48 kB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.352/0.5351, allocations: 80.14 kB / 0.7745 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.5351, allocations: 77.06 kB / 0.7746 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.5352, allocations: 107.5 kB / 0.7747 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=0): time 2.384e-06/0.5352, allocations: 2.031 kB / 0.7747 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of matching and sorting (n=0): time 0.0002536/0.5354, allocations: 58.89 kB / 0.7747 GB, free: 15.41 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.22e-05/0.5355, allocations: 128.3 kB / 0.7749 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005525/0.536, allocations: 433.9 kB / 0.7753 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/0.5361, allocations: 26.52 kB / 0.7753 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.946e-05/0.5361, allocations: 132.5 kB / 0.7754 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.096e-06/0.5361, allocations: 0 / 0.7754 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.5363, allocations: 91.56 kB / 0.7755 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.991e-05/0.5363, allocations: 343.8 kB / 0.7758 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.5365, allocations: 100.1 kB / 0.7759 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.5366, allocations: 162.4 kB / 0.7761 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002967/0.5369, allocations: 308 kB / 0.7764 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.5369, allocations: 0 / 0.7764 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004968/0.5374, allocations: 339.6 kB / 0.7767 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.5375, allocations: 5.75 kB / 0.7767 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.5375, allocations: 2.734 kB / 0.7767 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.5375, allocations: 3.844 kB / 0.7767 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.184e-06/0.5375, allocations: 3.562 kB / 0.7767 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.5375, allocations: 3.641 kB / 0.7767 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.5377, allocations: 45.34 kB / 0.7768 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.5377, allocations: 4.25 kB / 0.7768 GB, free: 14.5 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.000224/0.5379, allocations: 244.4 kB / 0.777 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.97e-05/0.538, allocations: 128.9 kB / 0.7771 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.22e-05/0.538, allocations: 119.9 kB / 0.7772 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.069e-05/0.538, allocations: 178.6 kB / 0.7774 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.095e-05/0.5381, allocations: 179.6 kB / 0.7776 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.02e-05/0.5381, allocations: 186.5 kB / 0.7778 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002019/0.5383, allocations: 479.8 kB / 0.7782 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.471e-05/0.5383, allocations: 108.4 kB / 0.7783 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.219e-05/0.5383, allocations: 103.3 kB / 0.7784 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-05/0.5384, allocations: 181.8 kB / 0.7786 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.5384, allocations: 184.9 kB / 0.7788 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.272e-05/0.5384, allocations: 177.8 kB / 0.7789 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.065e-05/0.5385, allocations: 182.5 kB / 0.7791 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.201e-05/0.5385, allocations: 330.4 kB / 0.7794 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.799e-05/0.5386, allocations: 203.1 kB / 0.7796 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.761e-05/0.5386, allocations: 181.6 kB / 0.7798 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.5388, allocations: 108.2 kB / 0.7799 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.622e-05/0.5388, allocations: 176.9 kB / 0.7801 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.5388, allocations: 114 kB / 0.7802 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002596/0.5391, allocations: 281.4 kB / 0.7804 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5391, allocations: 1.156 kB / 0.7804 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003996/0.5395, allocations: 81.23 kB / 0.7805 GB, free: 10.94 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.0004658/0.54, allocations: 0.9583 MB / 0.7815 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002221/0.5402, allocations: 164.3 kB / 0.7816 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.5402, allocations: 0 / 0.7816 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.024e-06/0.5402, allocations: 1.344 kB / 0.7816 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.5405, allocations: 469.2 kB / 0.7821 GB, free: 9.582 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002514/0.543, allocations: 2.928 MB / 0.7849 GB, free: 7.672 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001974/0.5432, allocations: 0.7778 MB / 0.7857 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.789e-05/0.5433, allocations: 2.484 kB / 0.7857 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.148e-05/0.5433, allocations: 55.45 kB / 0.7857 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of SimCode: time 5.01e-07/0.5433, allocations: 0.8125 kB / 0.7857 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02425/0.5676, allocations: 6.475 MB / 0.7921 GB, free: 6.223 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.824/8.392, allocations: 15.81 kB / 0.7921 GB, free: 6.211 MB / 0.5606 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)